开发者

Ant script execution fails

开发者 https://www.devze.com 2023-02-10 22:41 出处:网络
I am trying to run Ant script and getting following error at line: <javac deprecation=\"on\" destdir=\"${prj.build}\"

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 co开发者_如何转开发mpiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK.


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.)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号