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 “D:\jdk\jre1.5.0_15”
在使用的过程中出现该问题
解决方法
在我的电脑--》高级--》环境变量中
设置JAVA_HOME
在path后面添加
%JAVA_HOME%\bin\tools.jar
ant 的执行过程
在cmd下找项目的build.xml所在位置
执行ant
或者cmd 下 执行ant build.xml文件问题