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 Path

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

猜你喜欢

转载自my.oschina.net/u/1476793/blog/1813457