JavaWeb: 报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

原因 : Javaweb工程类中没有添加Tomcat运行时相关类导致。

1、右击web工程》属性》Build Path》Java Build Path》Libraries--》 Add Libray.-》Server Runtime -》Tomcat Server

2、切换到Java Build Path界面中的Orader and Export,选择Tomcat即可

原文地址:https://www.cnblogs.com/libaowen609/p/12819717.html