1.问题(Questions):

在Eclipse中创建Java Web项目时,报错:The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path

2.问题分析(Analysis):

英文:The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path

翻译:在Java构建路径上没有发现javax.servlet.http.HttpServlet超级类。

即需要在Eclipse上配置Java Build Path。

3.解决方案(Solutions)

3.1鼠标移至Java Web项目上,鼠标右击,选择build path > configure build path > java build path .

Java Web项目报错:The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path

3.2上图中选中 libraries >add Library,选择Server Runtime.

Java Web项目报错:The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path

3.3选择Apache Tomcat v7.0,点击Finish即可。

Java Web项目报错:The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path

至此,此博文所涉及的问题已解决。

4.总结(Sum up)

在出现报错提示后,可以简单的依据报错信息进行处理。

说明:此博客为笔者日常总结,不当之处,还请见谅,欢迎纠错,感谢。

 

 

 

相关文章:

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