2017  Kodetalk | Feedback | Privacy Policy | Terms | About

No compiler is provided in this environment - From Eclipse on Maven Run

I configured maven in eclipse kepler newly and when run the maven application  from the configured eclipse got the below exception.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project MyApp: Compilation failure 
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

I verified the JRE/JDK path which seems to be looks good but still having the above issue.


May be you didn't verify your Java path from below location,

i.e Window → Preferences → Java → Installed JREs.

And see if there is an entry pointing to your JDK path, and if not, click on Edit button and put the path you configured your JAVA_HOME environment.

Answer is