index.jsp报错The superclass "javax.servlet.http.HttpServlet" was not found on the Java Bui

Posted 下一个秋天

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了index.jsp报错The superclass "javax.servlet.http.HttpServlet" was not found on the Java Bui相关的知识,希望对你有一定的参考价值。

1.index.jsp报错The superclass "javax.servlet.http.HttpServlet" was not found on the   Java Build Path的解决办法

主要是Javaweb工程类中没有添加Web 容器Runtime相关类导致:

第一:

右击项目名称->propertise->java build path->libraries->add libraries->server runtime->选择你的tomcat 服务器->finish,到这里之后java文件报的错没了。

第二:

切换到Java Build Path界面中的Orader and Export,选择需要用到的jar包,我是全部勾上了jsp报的错就没了。

 

以上是关于index.jsp报错The superclass "javax.servlet.http.HttpServlet" was not found on the Java Bui的主要内容,如果未能解决你的问题,请参考以下文章

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——记录一下

JSP报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

[IDE - Eclipse] JSP报错:The superclass “javax.servlet.http.HttpServlet” was not found on the Java Buil

JavaWeb:报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Buil