When, i try to run maven install on a project i get this error:
Unable to locate the Javac Compiler in:
[ERROR] C:\Program Files\Java\jre1.8.0_77\..\lib\tools.jar
[ERROR] Please ensure you are using JDK 1.4 or above and
[ERROR] not a JRE (the com.sun.tools.javac.Main class is required).
[ERROR] In most cases you can change the location of your Java
[ERROR] installation by setting the JAVA_HOME environment variable.
The problem is in the Eclipse setup: Eclipse does not recognize the actual java home variable. Therefore, it is recommanded to update the JDK Eclipse is using, as follows:
Add and set the JRE in Window->Preferences…->Java->Installed JREs, and modify it by adding the path of the java home variable.