How to fix Maven Error “No compiler is provided in this environment.”?

Share this

Are you also facing an error that says – No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

Problem Error

Error occurs during running: mvn clean install on a Java Maven project

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

The reason for this issue

This is happening because, either the JAVA_HOME variable is not set properly or you are pointing to JRE instead of JDK.

The solution to the Problem

Try to Set the JAVA_HOME environment variable to your system JDK root folder.

If you are still not able to resolve it, please feel free to put your queries/questions in the comment section below. Thanks!

Feel free to share your thoughts on this topic in the comments section below 👇 We would be happy to hear and discuss the same 🙂

Share this

Leave a comment

Your email address will not be published. Required fields are marked *