[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的主要内容,如果未能解决你的问题,请参考以下文章