Java Tomcat 7.0 无法从 Eclipse 启动

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19583305/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-12 18:32:17  来源:igfitidea点击:

Tomcat 7.0 not getting start from Eclipse

javajakarta-eetomcat7

提问by Developer

I have installed tomcat 7.0 on my system. When I am trying to run my application on the server from eclipse, it shows me this error

我已经在我的系统上安装了 tomcat 7.0。当我尝试从 Eclipse 在服务器上运行我的应用程序时,它向我显示此错误

The archive: C:/Program Files/Apache Software Foundation/Tomcat 7.0/bin/bootstrap.jar which is referenced by the classpath, does not exist.

What can be the issue?

可能是什么问题?

回答by Raúl

Try deleting the server configuration, and configure the server again.

尝试删除服务器配置,然后重新配置服务器。

If it doesn't work, change the server directory location.

如果它不起作用,请更改服务器目录位置。

If still issue, try un & reinstall of Tomcat. As a last option - try Tomcat 6/8 instead of 7.

如果问题仍然存在,请尝试卸载并重新安装 Tomcat。作为最后一个选择 - 尝试 Tomcat 6/8 而不是 7。

回答by Sai prateek

As your Error shows bootstrap.jar is not in classpath so,

由于您的错误显示 bootstrap.jar 不在类路径中,因此,

  1. Go through eclipse-->Build path--> configure build path check your server .

  2. Check the your server lib for given jar

  3. If this is not resolve your problem delete your server , install again, and add your server in your new eclipse workspace project.

  1. 通过 eclipse-->Build path-->configure build path 检查您的服务器。

  2. 检查给定 jar 的服务器库

  3. 如果这不能解决您的问题,请删除您的服务器,重新安装,并将您的服务器添加到新的 eclipse 工作区项目中。

Hope it will help.

希望它会有所帮助。

回答by Simmant

you have to add class path of java in the environment variable and then add the path of your Tomcat to the PATH.

您必须在环境变量中添加java的类路径,然后将Tomcat的路径添加到PATH。

回答by Ashish

double-click on Tomcat server --> click on Overview of Tomcat settings appears --> "Open launch configuration" then Classpath --> under classpath...Edit User Entries here

双击Tomcat服务器-->单击出现Tomcat设置概述-->“打开启动配置”然后是类路径-->在类路径下...在此处编辑用户条目