本文介绍了找不到Tools.jar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试构建JOGL的副本
I am trying to build a copy of JOGL
但是ant一直给我错误找不到tools.jar。
but ant keeps giving me the error cannot find tools.jar.
所以我在我的JDK目录中搜索,我也找不到它。有人可以帮我找工具.jar
so i searched within my JDK dir and i also cannot find it. can someone help me with locating tools.jar
推荐答案
你确定你在搜索你的 JDK 目录而不是 JRE 目录?我希望它在JDK lib
目录中。例如,在我的机器上,我有:
Are you sure you're searching your JDK directory instead of the JRE directory? I'd expect it to be in the JDK lib
directory. For example, on my machine I have:
c:\Program Files\Java\jdk1.6.0_26\lib\tools.jar
如果Ant找不到它,请确保你正在运行JDK目录中的Java版本,而不是JRE目录中的Java版本。
If Ant can't find it, make sure you're running the version of Java in the JDK directory rather than the one in the JRE directory.
这篇关于找不到Tools.jar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!