Eclipse/Maven error: "No compiler is provided in this environment"
Go to 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.
Screen_shot Add 'tools.jar' to installed JRE.
Eclipse
->window
->preference
.- Select
installed JREs
->Edit
- Add External Jars
- select
tools.jar
fromjava/JDKx.x/lib
folder. - Click Finish
I tried all the things; the one that worked for me is:
- Right click on Eclipse project and navigate to properties.
- Click on Java Build Path and go to the Libraries tab.
- Check which version of Java is added there; is it JRE or JDK?
- If you are using Maven project and want to build a solution.
- Select the JRE added their and click remove.
- Click Add external class folder and add the JDK install by selecting from the system.
- Click Apply and OK.
- Restart Eclipse.
- Build succeeded.
Go into Window > Preferences > Java > Installed JREs > and check your installed JREs. You should have an entry with a JDK there.
https://cduu.wordpress.com/2013/03/08/maven-eclipse-compiler-error-no-compiler-is-provided-in-this-environment/