xml文件頭報錯The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

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

 

1,File->New->Other->Server->Apache->Tomcat v6.0 Server(選中你安裝的那個tomcat目錄就好了)
   而後下一步 再把你剛纔那個導入出錯的工程選擇下 就好了
   注意在new時,別忘了勾上Show All Wizards  否則那個server不會出來的

  或者
 2,Project->Properties->Java Build Path->Libraries->Add Library->WTP Server Runtime(MyEclipse incompatible)->next->Tomcat v6.0 Server->Tomcat v6.0 Server
相關文章
相關標籤/搜索