问题描述
现在报这个错~~ BUILD FAILED D:workspaceant_textbuild.xml:46: 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 FilesMyEclipse 6.5jre"
解决方案
你把JAVA_HOME错误的配置到JRE目录了,改成:C:Program FilesJavajdk1.5.0_04或者类似的就行了。如果你是在myeclipse里面运行的ant,那么修改myeclipse绑定到jdk,不要jre
时间: 2024-11-05 23:32:05