工具jar不存在Eclipse JAVA [英] Tools jar does not exist Eclipse JAVA
问题描述
归档文件:类路径引用的C:/Java/jdk1.6.0_26-32/lib/tools.jar不存在。
这是运行Tomcat时出现的错误。清洁或发布没有问题 - 只有当我启动Tomcat服务器时。
This is the error I have when run Tomcat. There was no problem cleaning or publishing - only when i start the Tomcat server.
现在,我检查了我的文件夹,并有一个 tools.jar文件路径
中的
C:\Java\jdk1.6.0_34\lib
Now, I checked my folders and there is a tools.jar
in file path C:\Java\jdk1.6.0_34\lib
我缺少什么?
使用jre6并安装jdk1.6.0_34
using jre6 and have jdk1.6.0_34 installed
推荐答案
右键单击您的eclipse项目,在首选项
转到 Java>安装的JRE,选择您的JDK
并点击编辑
。在新的对话框中,您可以将添加外部jars 像 tools.jar
添加到执行环境中。
Right click on your eclipse project, In Preferences
go to Java > Installed JREs, select your JDK
and click on Edit
. In the new Dialog you can add external jars like tools.jar
to your execution environment.
这篇关于工具jar不存在Eclipse JAVA的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!