建立了一个Javaweb工程,并在eclipse中配置了Web容器Tomcat。新建的jsp页面,添加一个简单的Java类。可是,JSP页面顶端出现“红色”的报错信息:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path。原来Javaweb工程类中没有添加Tomcat运行时相关类导致。解决方法是点击自己所建的Web工程,选择build path,点击configure build path,然后找到 Libraries,选择 add Library 。选择myeclipse server library 。选择自己的tomcat服务器。点添加即可。
相关文章
- 05-13The superclass “javax.servlet.http.HttpServlet" was not found on the Java Build Path错误
- 05-13使用maven创建项目时报错The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- 05-13eclipse中web工程新建jsp文件报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- 05-13eclipse 中新建文件报错The superclass "javax.servlet.http.HttpServlet" was not found on the Java Buil
- 05-13新建 jsp异常,The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- 05-13maven新建web项目提示The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- 05-13[IDE - Eclipse] JSP报错:The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path
- 05-13如何解决JSP页面顶端报错 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- 05-13The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- 05-13异常-----The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path。