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

在eclipse中新建JSP文件時報:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

如下圖:


解決步驟:
1.項目右鍵選擇Build Path--->>ConfigureBuild Path...
2.點擊add library...-->>Server RunTime...
3.選中一個已存在的服務器(我用的Tomcat),應用即可。


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