解决“The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path”问题
2016-10-08 15:57
691 查看
在创建maven web工程时,我们遇到了“The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path”的问题。详见博文:http://www.cnblogs.com/Answer900310/p/5390008.html 如图所示
:
项目工程结构中的jsp页面会出现小红叉,同时在控制台Problems中会报错。
解决办法:
1.右键工程,选择“Build Path-Configure Build Path”
点击“Add Library”按钮
选择“Server Runtime”选项,点击“next”按钮。
选择已经配置好的tomcat服务器,点击“Finish”按钮。如此处没有tomcat应用服务器,请先进行配置。
点击“Apply”按钮
即可解决,解决之后的工程如图所示:
:
项目工程结构中的jsp页面会出现小红叉,同时在控制台Problems中会报错。
解决办法:
1.右键工程,选择“Build Path-Configure Build Path”
点击“Add Library”按钮
选择“Server Runtime”选项,点击“next”按钮。
选择已经配置好的tomcat服务器,点击“Finish”按钮。如此处没有tomcat应用服务器,请先进行配置。
点击“Apply”按钮
即可解决,解决之后的工程如图所示:
相关文章推荐
- 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
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path解决办法
- JSP页面顶端出现错误: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 解决方法
- JavaWeb:报错信息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
- JavaWeb:报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- JavaWeb:报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- JavaWeb:报错信息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 解决方法
- JavaWeb:报错信息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
- JavaWeb: 报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- JavaWeb: 报错信息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
- JavaWeb: 报错信息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
- java开发eclipse常见问题(一)The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path