项目忽然出现 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Pat

Posted 小奔的早晨

tags:

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

我们在用Eclipse进行Java web开发时,可能会出现这样的错误: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 Pat的主要内容,如果未能解决你的问题,请参考以下文章

eclipse更改workspace中出现The superclass "javax.servlet.http.HttpServlet" was not found on the

JSP页面顶端出现错误:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Buil

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

MyEclipse中,使用Maven新建web项目后,提示The superclass "javax.servlet.http.HttpServlet" was not found

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

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