Could not find the main class: org.apache.catalina.startup.Boostrap. Program will exit

今天在一臺新的服務器上,用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,就沒有問題了。如下圖所示:

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章