无法找到的tools.jar [英] Unable to locate tools.jar
问题描述
可能重复:结果
无法找到的tools.jar
我试图使用Ant使用此命令进行编译:
I'm trying to use ant to compile using this command :
ant compile
我不知道,如果问题来自于我的Windows 64位,或别的东西。因为我在64安培安装了Java; 32 PROG文件。
I don't know if the problem comes from my windows 64bit, or by something else. Because I have java Installed in the 64 & 32 prog files.
我下载 Apache的ANT-1.8.2-斌
并用C推它:\\ Program Files文件\\ Apache的ANT-1.8.2
I downloaded apache-ant-1.8.2-bin
and putted it in C:\Program Files\apache-ant-1.8.2
我试图把蚂蚁无处不在,我也切换java的64和32之间的ENV路径,但每次我收到此错误信息:
I tried to put ant everywhere, I switched also the ENV PATH between java 64 and 32 but everytime I get this error message :
无法找到tools.jar中。预计将发现它在C:\\ PROGRAM
文件\\的Java \\ JRE6 \\ lib目录\\ tools.jar中
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib\tools.jar
我搜索的蚂蚁lib文件夹中的tools.jar,在java 64和32,但在系统中没有它的踪影。
I searched for tools.jar in the ant lib folder, in the java 64 and 32, but no trace of it in the system.
你觉得呢?
推荐答案
一个JRE没有tools.jar中,你需要一个JDK。设置您的JAVA_HOME和PATH变量,使它们指向一个JDK,而不是JRE。
A JRE doesn't have a tools.jar, you need a JDK. Set your JAVA_HOME and PATH variables so that they point to a JDK, not a JRE.
这篇关于无法找到的tools.jar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!