码迷,mamicode.com
首页 > 编程语言 > 详细

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

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

标签:you   .com   版本   tom   com   click   bsp   ror   image   

是因为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

标签:you   .com   版本   tom   com   click   bsp   ror   image   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!