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

Posted zZ

tags:

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

是因为Eclipse的Web项目不自动引入相关jar包.

Right Click on the Project ❯ Properties ❯ Project Facets. You would be presented with the screen that would look similar to the following screen. On the right hand side, you would see two tabs: Details and Runtimes. Click Runtimes tab ❯ Check the Apache tomcat server ❯ Apply ❯ Ok

That’s it. This would solve the error.

 

Caution:tomcat/jdk的版本兼容问题.

 

以上是关于[IDE - Eclipse] JSP报错:The superclass “javax.servlet.http.HttpServlet” was not found on the Java Buil的主要内容,如果未能解决你的问题,请参考以下文章

eclipse 中jsp的java代码部分引用了一个不存在的变量,怎么不提示报错

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

关于the ONE 在eclipse上会报错:Can't start: error in configuration file(s) 批处理就没问题。

The import javax.servlet.jsp.JspException cannot be resolved

有关eclipse遇到An Error has Occurred. See the log file问题解决办法

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