build.xml文件在不同的位置预计的tools.jar [英] build.xml expects tools.jar at a different location

查看:204
本文介绍了build.xml文件在不同的位置预计的tools.jar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用Ant来构建我的应用程序,构建成功,但在开始的时候说:

While using Ant to build my application, the build is successful but at the beginning it says

无法找到tools.jar中。预计将发现它在
  D:\\ Java的\\ JRE6 \\ lib目录\\ tools.jar中

Unable to locate tools.jar. Expected to find it in D:\Java\jre6\lib\tools.jar

不过我的tools.jar是在该位置D:\\ Java的\\ jdk6u30 \\ lib中

However my tools.jar is at the location D:\Java\jdk6u30\lib

我明白的tools.jar包含所需的JDK类和应只在JDK的lib present和无处。我希望我在这个正确的。
我的问题是,为什么build.xml文件预计,它在不同的位置?我有我的 JAVA_HOME
设置为

I understand that tools.jar contains classes needed by jdk and should only be present at jdk lib and nowhere else. I hope I am correct on this. My question is that why does build.xml expects it at a different location? I have my JAVA_HOME set to

D:\\ Java的\\ jdk6u30

D:\Java\jdk6u30

推荐答案

所以默认月食将采取JRE为安装了JRE的当你添加服务器。更改安装了JRE的以JDK。

So by default eclipse will take the jre as installed JRE's when you add the server. Change the installed JRE's to jdk.

您可以从窗口找到它 - > preferences-> Java的>安装JRE的

这篇关于build.xml文件在不同的位置预计的tools.jar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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