|IAM looking for Java tools in wrong place? [message #569144]
||Thu, 21 May 2009 04:48
Registered: July 2009
An error has started today whenever I try to do a Maven build:|
"Unable to locate the Javac Compiler in:C:\Program
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"
The relevant project's JRE is pointing at a valid JDK 1.5 install.
Machine wide JAVA_HOME is set to C:\Program Files\Java\jdk1.6.0_06\bin
Both contain tools.jar. I dont know why IAM's Maven is looking at
"C:\Program Files\Java\jre6\..\lib\tools.jar". That path doesnt even exist
on my machine, and is not mentioned in any env var.
Also, it didnt do this the last 2 days, running on same project and same
machine and same IDE. Strange...
Powered by FUDForum
. Page generated in 0.01986 seconds