You were compiling on Windows 7 when suddenly you are getting this error:
[ERROR] com.sun.tools.javac.Main is not on the classpath. [ERROR] Perhaps JAVA_HOME does not point to the JDK.
Then maybe something like that:
[ERROR] It is currently set to "C:\soft\java32\jdk1.7.0\jre"
So the JRE instead of the JDK?
What's going on?
Ant needs a file named tools.jar that it searches in the JRE but this file is in the JDK!
To resolve this problem, copy:
C:\soft\java32\jdk1.7.0\lib\tools.jar
into:
C:\soft\java32\jdk1.7.0\jre\lib\ext
If it still doesn't work, copy the tool.jar it into:
C:\soft\java32\jre7\lib\ext
Hooray! it works.
© Badprog - I want to change the world. And I will.
Add new comment