在用Eclipse进行Java web开发时,jsp可能会出现这样的错误:The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path。解决办法如下:

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

 

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

选择第四个,添加库

 

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

选择蓝色选中的行:

 

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

 

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

选择--》应用--》OK

 

问题就可以解决了。

相关文章:

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