GITHUB上下载的Java Web项目,导入Eclipse后报错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

解决办法:

1、右键项目工程 -> Build Path -> Configure Build Path…

JSP页面出现The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

2、Add Library…

JSP页面出现The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

3、Server Runtime -> Next

JSP页面出现The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

4、选择Tomcat

JSP页面出现The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

5、点击Apply -> OK

JSP页面出现The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

错误消失~

相关文章:

  • 2021-10-18
猜你喜欢
  • 2021-04-11
  • 2021-08-20
  • 2021-10-04
  • 2021-04-17
相关资源
相似解决方案