如果 在Eclipse 中新建的WEB 项目 出先上述 报错

就是说明该  Javaweb工程类中没有添加Tomcat运行时相关类 

右键web项目名称 - properties-Java Build Path -Libraries - Add Libray - Server Runtime 

 

Tomcat WEB 项目报错 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

next 选择 配置到 Eclipse 里的 Tomcat Server

Tomcat WEB 项目报错 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

2、切换到Java Build Path界面中的Orader and Export,选择Tomcat。

Tomcat WEB 项目报错 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

相关文章:

  • 2021-10-06
  • 2021-09-13
  • 2021-04-05
  • 2021-08-02
  • 2022-01-06
  • 2021-10-04
猜你喜欢
  • 2021-09-06
  • 2021-12-05
  • 2021-05-24
  • 2021-09-23
  • 2022-12-23
相关资源
相似解决方案