Why does ANT tell me that JAVA_HOME is wrong when it is not?

Posted by Ankur on Stack Overflow See other posts from Stack Overflow or by Ankur
Published on 2009-10-13T07:55:56Z Indexed on 2010/04/12 3:53 UTC
Read the original article Hit count: 338

Filed under:
|
|

I get the error:

C:\dev\ws\springapp\build.xml:81: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK. It is currently set to "C:\Program Files\Java\jre6"

But I have clearly set my JAVA_HOME to be C:\Program Files\Java\jdk1.6.0_14

Where is ANT getting this value?

© Stack Overflow or respective owner

Related posts about ant

Related posts about java-home