C:\Documents and Settings\Sjoerd\workspace\PPath\resources\build.xml:107: The following error occurred while executing this line:
C:\Documents and Settings\Sjoerd\workspace\PPath\resources\build.xml:141: 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"
Solution:
1) In Eclipse click Run->External Tools->External Tools Configurations
2) Click JRE tab
3) Click Installed JREs... button
4) Click Add button (select Standard VM, where applicable)
5) Click Directory Button
6) Browse to your JDK version (not JRE) of your installed Java (eg: C:\Program Files\Java\jdk1.7.0_04)
7) Click Finish.
8) Re-run Ant script - have fun!
3) Click Installed JREs... button
4) Click Add button (select Standard VM, where applicable)
5) Click Directory Button
6) Browse to your JDK version (not JRE) of your installed Java (eg: C:\Program Files\Java\jdk1.7.0_04)
7) Click Finish.
8) Re-run Ant script - have fun!
thank you from Raj
ReplyDelete