Ant script?

When I run my ant script i receive the following error(in Eclipse):



BUILD FAILED

C:Documents and SettingsKristian SylwanderworkspaceHelloWorldbuild.xml:9: 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



I think that py PATH is right…what can cause this problem?


Hi,



are you using the tutorials? If not, do so.

http://www.jmonkeyengine.com/wiki/doku.php?id=getting_started



What happens when you write javac on the command line prompt? Do javac start, or do you get ““javac” is not recognized as an internal or external command?”



Also, go into window-preferences-installed jres and see that jdk is selected as the standard virtual machine. If not, press “add” and call it jdk1.6.0 (or whatever) and set the home directory to C:Program FilesJavajdk1.6.0 (or the correct one). Then press OK and check this jre instead.

Thanks a lot that solved my problem!