The archive: D:/Program Files (x86)/apache-tomcat-6.0.39/bin/bootstrap.jar w

1.错误:

Eclipse下启动tomcat的时候,报错为:Eclipse下启动tomcat报错:The archive: C:/Program Files(x86)/Java/jdk1.7.0_10/lib/tools.jar which is referenced by the classpath, doesnot exist.

计算机生成了可选文字:国p「o匕lemoccu「red心)'StartinaTomcatv7.0Serveratlocalhost,has~encounteredaproblem·Thearchive:C:/ProgramFiles(x86)IJavaljdkl.7.0--10llibltoolsjarwhich15referencedbytheclasspath,doesnotexist.

2.原因:

这是因为我中途移动过tomcat的位置的缘故,而Eclipse中对于tomcat配置却没有改变。

3.解决:

打开Eclipsetomcat配置,就是双击server选项卡中的tomcat,然后选择openlaunch configuration,如下图所示:

计算机生成了可选文字:日overviewGeneralInformationSpecifythehostname卜Pandothercommonsettings.TomCatv7.0Se四erat!OCalhOSt卜下lSe四ername:日OStname:localhost,pM0陌旧旧旧丛迎血吐止迅鱼匹四回止一ApacheTomcatv7·0三Con6gurationpath:/serve「s二omcatv7.oserverat.oca.卜IB「owse日,ServerLocationsSPecifytheserverPoth(i.e.cotolino.bose)。nddeployPath.ServerrnustbePublishedwithnomodulespresenttomakechanges.UseworkSPacemetadata(doesnotmodifyTomcatinstallation)‘国use丁omcatinstallation(takescontrolof丁omcatinstallation)UsecustomIocation(doesnotmodifyTomcatinstallation)卜~

打开以后会出现如下界面:

如上图所示,我标注出了错误路径,将这个错误路径删除,并保证正确配置tools.jarbootstrap.jar这两个jar包的路径。


小结:在移动相关资源或者依赖资源的时候会对原有的依赖它的项目产生影响.尽量将自己的IDE和相关的环境固定,少做更改,减少那些隐藏的错误出现的几率.

posted @ 2014-03-18 08:57  菜鸟搞IT  阅读(6077)  评论(0编辑  收藏  举报