天天看点

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
           

项目右击–>build path -->Add libraries–>server runtime–>next

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

选择tomcat版本–>apply

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

然后如下图 勾选相应tomcat版本–>apply–>apply and close

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

ok了!!!

报错消失

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

继续阅读