我们在利用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 Path

处理办法如下:

1、打开“配置编译路径”,如下图

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

2、点击“Add Library”

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

3、选择“Server Runtime"

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

4、选择”Apache Tomcat v8.0"(根据实际选择)

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

5、完成,关闭相关窗口。

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

 

相关文章:

  • 2021-08-18
  • 2021-10-04
  • 2021-04-17
猜你喜欢
  • 2021-10-24
  • 2021-05-31
  • 2021-11-04
  • 2021-07-27
  • 2021-06-22
  • 2021-07-07
相关资源
相似解决方案