Ant需要tools.jar却找不到 [英] Ant needs tools.jar and unable to find it

查看:34
本文介绍了Ant需要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?

这篇关于Ant需要tools.jar却找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆