无法找到tools.jar

编程入门 行业动态 更新时间:2024-10-27 12:24:01
本文介绍了无法找到tools.jar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

可能重复: 无法找到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

本文发布于:2023-10-05 10:13:01,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1467353.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:tools   jar

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!