ant 打包问题
E:\workspace\moloonsonny2.0> ant
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.5.
0_06\lib\tools.jar
Buildfile: build.xml
init:
prepare-src:
compile:
[javac] Compiling 687 source files to E:\workspace\moloonsonny2.0\build
BUILD FAILED
E:\workspace\moloonsonny2.0\build.xml:60: 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\jre1.5.0_06 "
Total time: 1 second
求救,这个问题怎么解决呢?
[解决办法]
错误信息多明白啊:
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files\Java\jre1.5.0_06