当前位置: 代码迷 >> Eclipse >> Could not find the main class: org.apache.catalina.startup.Bootstrap
  详细解决方案

Could not find the main class: org.apache.catalina.startup.Bootstrap

热度:1013   发布时间:2016-04-23 12:50:08.0
Myeclipse的各种错误解析

string cannot be resolved to a type

表现:所有出现String或String型返回值的地方都显示为红叉叉

原因:没有导入JRE System Library

解决方法:

1、先安装JRE。在window-Pereference-Java-Installed JREs中点击Add

2、选择Standard VM,点击next

3、选择JRE home路径。路径为JDK的根目录。选择好了点击finish。

4、勾选刚刚加入的JRE,点击OK。

5、添加Library。右键单击工程-Build Path-Add Libraryies

6、选择JRE System Library然后点next

7、选择Workspace default JRE(就是在刚刚安装JRE步骤安装进来的JRE),点finish.


Could not find the main class: org.apache.catalina.startup.Bootstrap

表现:无法运行Tomcat服务器

原因:Tomcat版本太高

解决方法:

1、window-preferences-servers-Tomcat6.x-Path

2、在Path里面选择Add JAR/ZIP,加载tomcat7下的……/bin/tomcat-juli.jar。点击“OK”.


  相关解决方案