After a period of time without eclipse, I went to open the previous project and found that the front line was marked red. When viewing errors, as shown in the figure below:
Error:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
It turned out to be “no super ‘javax servlet. Http. Httpservlet’ was found on the Java build path” “
Therefore, right click on the original error ① item & gt> Build Path>> Configure build path to configure the project. As shown in the figure:
②Add Library—->> Server runtime (configure the server to run)
After that, you have finished the project deployment and the server you want to run! But it hasn’t solved the problem yet
you also need to ③ deploy JRE (Java runtime environment) runtime environment and some related LIBS… Finally, apply and close. As shown in the figure:
This solves those red errors
Similar Posts:
- JSP Web Error:The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path
- About eclipse new web project, prompt: “the superclass” javax. Servlet. Http. Httpservlet “was not found on the Java” solution
- Eclipse Error:The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path
- [Solved] javax.servlet.jsp.JspTagException: Don’t know how to iterate over supplied “items” in xxx
- The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path
- The solution of the import javax.servlet cannot be resolved in Java
- java.lang.OutOfMemoryError: GC overhead limit exceeded
- import javax.servlet.http.HttpSession;
- The import javax.servlet cannot be resolved [How to Solve]
- Eclipse: How to Solve JSP <%@ Error