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

problem description

for a new web project, the index.jsp page reports an error: the superclass “javax. Servlet. Http. Httpservlet” was not found on the Java build path
as shown in the figure:

processing method
right click build path configure build path, under libraries, click add variable

select server runtime, click Next

select tomcat, click Finish

and finally click OK

processing results

Similar Posts: