0
votes

I am trying to run Ant script and getting following error at line:

        <javac deprecation="on"
         destdir="${prj.build}"
         debug="${prj.debug}"
         debuglevel="lines,source"
         ***classpathref="compile.classpath">***
         <src path="${prj.src}"/>

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.

1

1 Answers

0
votes

Do you have the JDK installed? The JRE alone is not enough for many ant tasks.

If yes, read the error message: do you have an environment variable named JAVA_HOME, and does it point to the jdk-directory? (This is used by the ant wrapper script to setup the paths right.)