The archive: /bin/bootstrap.jar which is referenced by the classpath, does not exist.

  • Post author:
  • Post category:其他


配置完毕后,欲在Eclipse中启动tomcat,但启动失败,每次都报错,错误提示如下:* The archive: /bin/bootstrap.jar which is referenced by the classpath, does not exist.

显然是路径问题,但问题出在哪儿,如何解决呢?

这里是server的配置出了问题,双击eclipse中右下角面板中的servers-tomcat图标,打开Server Overview,点击open launch configuration 在此修改启动server时的相关设置。翻到classpath选项卡,在User Entryz中正确设置bootstrap.jar和tools.jar的目录即可。

回想起来,我出现这个问题的原因在于:我曾在c盘和d盘都安装过tomcat,每一次安装tomcat系统便在User Entry中增加一个bootstrap.jar的路径。后来我把d盘的tomcat删掉了,然而在eclipse中启动tomcat时,系统每次都要查找并使用bootstrap.jar,他查不到d盘下的这个文件,于是报错,启动失败。