首页 > 代码库 > Eclipse: The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path

Eclipse: The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path

Link:

http://stackoverflow.com/questions/22756153/the-superclass-javax-servlet-http-httpservlet-was-not-found-on-the-java-build

 

解决方法:

1)  选中出错的project,

2)   Project->Properties->Target Runtimes->The used web server( e.g. Apache Tomcat)

Eclipse: The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path