compile:[javac]Compiling3sourcefilestoD:\Sun\JavaStdio\JavaWebStudioWorkDir\chapter6\chapter6\${catalina_home}\webapps\chapter6\WEB-INF\classesBUILDFAILEDD:\Sun\JavaStdio...
compile:
[javac] Compiling 3 source files to D:\Sun\JavaStdio\JavaWebStudioWorkDir\chapter6\chapter6\${catalina_home}\webapps\chapter6\WEB-INF\classes
BUILD FAILED
D:\Sun\JavaStdio\JavaWebStudioWorkDir\chapter6\chapter6\build.xml:34: 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:\Program Files\Java\jdk1.6.0_07\jre"
我的Java_Home路径没有问题,在cmd中能够编译和运行Java类。
其中build.xml中的34行为:
还有就是我的JAVA_HOME=D:\Program Files\Java\jdk1.6.0_07.
请问这是什么问题?帮帮忙。谢谢。
我的JRE_HOME=E:\Program Files\Java\jre1.6.0_07是没有问题的,这是安装的时候程序自带的,而其运行其他相关的软件都没有问题,就是运行javaWebstudio的时候有问题,我想问的是为什么会有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:\Program Files\Java\jdk1.6.0_07\jre"
这个提示以及如何修改?
展开