蚂蚁需求的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?