蚂蚁需求的tools.jar,无法找到它 [英] Ant needs tools.jar and unable to find it
本文介绍了蚂蚁需求的tools.jar,无法找到它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是一个Java程序组建了一个开发环境,并第一次尝试我的Ant构建脚本后,我得到这个错误:
I am putting together a dev environment for a Java program and after the first try of my Ant build scripts I got this error:
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk/lib/tools.jar
虽然路径JDK是正确的,真正的tools.jar是不存在。它实际上是应该在那里还是我得到一些配置/安装的东西错了?
While the path to the jdk is correct, the tools.jar really wasn't there. Is it actually supposed to be there or did I get some config/installation thing wrong?
推荐答案
它的存在,我的机器上。我在Windows XP SP3上运行的Sun JDK 1.6.0_21。
It's there on my machine. I'm running Sun JDK 1.6.0_21 on Windows XP SP3.
你确定你有JDK?难道你只有JRE?
Are you sure you have the JDK? Is it possible that you only have the JRE?
这篇关于蚂蚁需求的tools.jar,无法找到它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文