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.右击web工程
--->Build Path
--->Configure Build Path
--->java Build Path
--->Libraries
--->Add Library
--->Server RunTime
--->Apache Tomcat v8.0
--->Finish
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的解决方法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的解决方法
如果你在这里没有看见Apache tomcat v8.0

2.
--->点击Windows
--->perferences
--->server
--->runtime Environments
--->add
--->Apache tomcat v8.0
--->finish

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的解决方法The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path的解决方法

OK 你的问题解决了!!!