Tuesday, 23 April 2013

Unable to locate the Javac Compiler in


I got the same, when running maven in eclipse

Unable to locate the Javac Compiler in:
C:\Program Files\Java\jre1.6.0_07\..\lib\tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.

What I discovered is that the JRE set from Eclipse was pointing to the "Program Files\Java\Jre...", the one without jdk.The solution was to change the JRE to the "...SDK\jdk\jre..." the one contained in the JDK installation.

No comments:

Post a Comment