以下命令ant -version
引发错误Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk-amd64/lib/tools.jar
截屏:
du@ubuntu-pc:~/workspace/alfresco/HEAD/root/projects$ ant -version
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk-amd64/lib/tools.jar
我已经配置了 JAVA_HOME。并且java -version
运行没有任何问题
答案1
通过安装默认 JDK,我能够成功运行 ant,如下所示:
apt-get install default-jdk