啓動Tomcat7.0時 提示:could not find the main class……

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.tomcat

實際上,就是把bin/tomcat-juli.jar 下add tomcat classpath下,從新啓動tomcat7.0能夠啓動了!spa

相關文章
相關標籤/搜索