The superclass“jakarta.servlet.http.HttpServlet” was not found on the Java Build Path

问题描述:

在Eclipse的Web项目中创建index.jsp文件时,显示错误:The superclass

“jakarta.servlet.http.HttpServlet” was not found on the Java Build Path

解决方案:

1右键点击web项目目录选择Build Path下的Configure Build Path

2.添加库文件

3添加至Server Runtime库

4选择启动项目的Tomcat服务器,Finnish

5重启打开文件即可,若还是不行,重新创建jsp文件就不会报错了

eclipse最新版可能要重新删除在创建一个

 

精彩链接

评论可见,请评论后查看内容,谢谢!!!
 您阅读本篇文章共花了: