JavaWeb: error message The superclass "javax. servlet. http. HttpServlet" was not found on the Java Build Path, httpservlet
JavaWeb: error message The superclass "javax. servlet. http. HttpServlet" was not found on the Java Build Path
The "red" error message appears at the top of The JSP page: the superclass "javax. servlet. http. HttpServlet" was not found on The Java Build Path. In the original Java Web project, no Tomcat runtime classes were added.
The specific solution is as follows:
1. Right-click the web Project-> property or Build Path-> Java Build Path-> Libraries-> Add Libray...-> Server Runtime-> Tomcat Server
2. Switch to Orader and Export on the Java Build Path interface and select Tomcat.
A servlet class was created when netbeans was working on Java Web. In other computers, how does one solve javaxservlethttpHttpServlet errors?
Javax. servlet. http. HttpServle has a compilation error because there are fewer packages.
@ Override: the compilation error may be caused by the absence of a package. As a result, the compiler cannot find the corresponding method of the parent class.
In short, you need to import the corresponding package, you copy the servlet-api.jar In the lib folder in tomcat6.0 to the project, add to the compilation path try
The superclass "javaxservlethttpHttpServlet" was not found on the Java Build Path
Servlet. jar is not referenced. See blog.snsgou.com/post-487.html