JavaWeb:报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

我们遇到的错误显示如下

图片:
JavaWeb:报错信息The superclass “javax.servlet.http.HttpServlet“ was not found on the Java Build Path

解决办法如下:

1.右击有错误提示的文件夹–>选择Build Path–>Java Build PathJavaWeb:报错信息The superclass “javax.servlet.http.HttpServlet“ was not found on the Java Build Path
2.选择lLibraries,再选择Add Library–>Server Runtime -->Tomcat Server,如下图:
JavaWeb:报错信息The superclass “javax.servlet.http.HttpServlet“ was not found on the Java Build Path
JavaWeb:报错信息The superclass “javax.servlet.http.HttpServlet“ was not found on the Java Build Path
JavaWeb:报错信息The superclass “javax.servlet.http.HttpServlet“ was not found on the Java Build Path
3.切换到Java Build Path界面中Orader and Exportt,选择Tomcat。
JavaWeb:报错信息The superclass “javax.servlet.http.HttpServlet“ was not found on the Java Build Path
Apply and Close结束

(第一次写,也是自己遇到的问题,在网上查了一下,自己操作了一遍,然后自己进行的截图,具体参考了如下两篇文章)

[1].https://blog.csdn.net/fei20072050104/article/details/21785565
[2].https://www.cnblogs.com/achengmu/p/8082457.html

相关文章: