Could not find the main class: org.apache.catalina.startup.Boostrap. Program will exit
2014-05-05 17:02
816 查看
今天在一台新的服务器上,用MyEclipse 8.0M1连接Tomcat 7(实在懒得换MyEclipse版本,好不容易找到个可以用的),但是当使用MyEclipse启动Tomcat时,会弹出下面的错误消息,"Could not find the main class: org.apache.catalina.startup.Boostrap. Program will exit."
经过搜索以后发现,主要原因可能就是MyEclipse和Tomcat的版本不兼容问题。其实解决方法也很简单,在Tomca 6.x的配置界面中,在"Append to classpath"中选择"Add JAR/ZIP",定位到%Tomcat_HOME%\bin\tomcat-juli.jar,然后再启动Tomcat,就没有问题了。如下图所示:
经过搜索以后发现,主要原因可能就是MyEclipse和Tomcat的版本不兼容问题。其实解决方法也很简单,在Tomca 6.x的配置界面中,在"Append to classpath"中选择"Add JAR/ZIP",定位到%Tomcat_HOME%\bin\tomcat-juli.jar,然后再启动Tomcat,就没有问题了。如下图所示:
相关文章推荐
- Could not find the main class: org.apache.catalina.startup.Boostrap. Program will exit
- Could not find the main class: org.apache.catalina.startup.Boostrap. Program will exit.
- "Could not find the main class: org.apache.catalina.startup.Boostrap. Program will exit."
- Could not find the main class: org.apache.catalina.startup.Boostrap. Program will exit
- 启动tomcat的时候报错信息如下:. Could not find the main class: org.apache.catalina.startup.Bootstrap. Program wi
- [Web开发笔记][3]MyEclipse 8.0启动Tomcat 7报错:Could not find the main class: org.apache.catalina.startup.Boostrap.
- [Web开发笔记][3]MyEclipse 8.0启动Tomcat 7报错:Could not find the main class: org.apache.catalina.startup.Boostrap.
- Tomcat7.0 start Could not find the main class: org.apache.catalina.startup.Bootstrap.
- Tomcat7.0 start Could not find the main class: org.apache.catalina.startup.Bootstrap.
- Could not find the main class: org.elasticsearch.bootstrap.Elasticsearch. Program will exit.
- Could not find the main class: org.elasticsearch.bootstrap.Elasticsearch. Program will exit.
- [Web开发笔记][3]MyEclipse 8.0启动Tomcat 7报错:Could not find the main class: org.apache.catalina.startup……
- Could not find the main class. Program will exit.
- Could not find the main class. Program will exit.
- 【解决方法】Could not find the main class Program will exit
- Could not find the main class Program will exit 解决方案解决办法
- runnable jar 不能在win7打开,显示错误:Could not find the main class. Program will exit.
- 解决运行java application时提示Could not find the main class.Program will exit.问题
- could not find the main class, Program will exit(已解决)
- linux 启动tomcat报错Error: Could not find or load main class org.apache.catalina.startup.Bootstrap等