我用MyEclipse启动或关闭Tomcat服务是会提示:could not find the main class......,这是怎么回事,求解?
3个回答
展开全部
我之前刚好遇到过这个问题,说说我最后的解决方法:
Solutions
1. In Eclipse, Open the “Server” tab.
2. Double click on the “Tomcat6″ entry to see the configuration.
3. Then click on the “Open launch configuration” link in the “General information” block.
4. In the dialog, select the “Classpath” tab.
5. Click the “Add external jar” button.
6. Select the file “/usr/share/tomcat6/bin/tomcat-juli.jar”
7. Close the dialog.
8. Start tomcat 6 from Eclipse.实际上,就是把bin/tomcat-juli.jar 下add tomcat classpath下,效果如下:重新启动tomcat7.0居然可以启动了!不知道是什么原因。
详情参考我的笔记:http://www.360doc.com/content/11/0513/16/1542811_116479287.shtml
Solutions
1. In Eclipse, Open the “Server” tab.
2. Double click on the “Tomcat6″ entry to see the configuration.
3. Then click on the “Open launch configuration” link in the “General information” block.
4. In the dialog, select the “Classpath” tab.
5. Click the “Add external jar” button.
6. Select the file “/usr/share/tomcat6/bin/tomcat-juli.jar”
7. Close the dialog.
8. Start tomcat 6 from Eclipse.实际上,就是把bin/tomcat-juli.jar 下add tomcat classpath下,效果如下:重新启动tomcat7.0居然可以启动了!不知道是什么原因。
详情参考我的笔记:http://www.360doc.com/content/11/0513/16/1542811_116479287.shtml
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询