可能重复: 无法找到tools.jar
使用ant命令编译:
ant compile我不知道问题是来自我的Windows 64位,还是别的什么。因为我有java安装在64& 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-bin ,并把它放在C:\Program Files\apache- -1.8.2
I downloaded apache-ant-1.8.2-bin and putted it in C:\Program Files\apache-ant-1.8.2
我试图把ant到处都是,我也切换ENV PATH之间的java 64和32,但每次我得到这个错误消息:
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 中找到它。Files \Java\jre6\lib\tools.jar
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib\tools.jar
我在ant 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
发布评论