eclipse的Server里找不到Apache tomcat

在Eclipse里建了jsp文件報錯

The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

發現是沒有添加apache tomcat(解決方案:java構建路徑->庫->添加庫->server runtime->添加apache)


添加庫時,找不到server runtime相關選項(解決方案:窗口->首選項->Server->Server Envronment->add->Tomcat


添加tomcat時,發現沒有(解決方案:在Help->InstallNew Software下输入网址,http://download.eclipse.org/releases/版本名


在Web,XML,Java EE and OSGi Enterprise Development下找到

JST Server AdaptersExtensions勾上(我已经安装了,所以不会出现)

安裝后重啟就正常了