首页 > 编程语言 > 详细

[IDE - Eclipse] JSP报错:The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path

时间:2018-07-10 19:37:37      阅读:179      评论:0      收藏:0      [点我收藏+]

是因为Eclipse的Web项目不自动引入相关jar包.

Right Click on the Project ? Properties ? Project Facets. You would be presented with the screen that would look similar to the following screen. On the right hand side, you would see two tabs: Details and Runtimes. Click Runtimes tab ? Check the Apache tomcat server ? Apply ? Ok
技术分享图片

That’s it. This would solve the error.

 

Caution:tomcat/jdk的版本兼容问题.

技术分享图片

 

[IDE - Eclipse] JSP报错:The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path

原文:https://www.cnblogs.com/zienzir/p/9291024.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!