debian下使用ant命令提示
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk-i386/lib/tools.jar
Buildfile: /opt/splunk-sdk-java-1.3.1/build.xml
build:
BUILD FAILED
/opt/splunk-sdk-java-1.3.1/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 "/usr/lib/jvm/java-6-openjdk-i386/jre"
Total time: 0 seconds解决方案:
安装jdk工具包:使用命令apt-get install openjdk-6-jdk
然后ant通过
本文介绍在Debian系统中使用Ant构建工具时遇到的编译问题及解决方案,包括找不到tools.jar文件和javac编译器的问题,并提供具体的解决步骤。

7957

被折叠的 条评论
为什么被折叠?



