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

这个报错的原因是缺少Jar包

项目上单击鼠标右键》Build Path》Configure Build Path

点击libraries中的 ADD Library>

Server Runtime>next >

Apache tomcat v7.0 >finish 即可

原文地址:https://www.cnblogs.com/j-liu3323/p/6518803.html