星空网 > 软件开发 > Java

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

JavaWeb项目中写的JSP页面需要Web容器解析处理成HTML才能展示到前端浏览器,解析JSP需要Web容器。
JSP页面顶端出现“红色”的报错信息:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path。

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

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

 

javax.servlet.http.HttpServlet是Web容器Tomcat包中的类,将需要的jar包导入项目中就能解决这个问题。

下面是具体的解决方法:

  右击web工程-> Build Path-> Java Build Path-> Libraries-> Add Libray-> Server Runtime -> Tomcat Server

 




原标题:Eclipse导入JavaWeb项目报错:The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path

关键词:JAVA

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

速看!4.15亚马逊德国站账号解封方案!:https://www.ikjzd.com/articles/22536
如何从亚马逊小白成长为专业卖家?:https://www.ikjzd.com/articles/22537
实用技术帖:如何在阿里国际站导航栏植入关键词:https://www.ikjzd.com/articles/22538
如何提高亚马逊搜索排名?:https://www.ikjzd.com/articles/22539
关于侵权与被侵权,亚马逊卖家必须知道这些!:https://www.ikjzd.com/articles/22540
解答:6个跨境电商站外推广常见问题:https://www.ikjzd.com/articles/22541
优秀的亚马逊运营每天必做的二十件事:https://www.xlkjsw.com/news/92277.html
对赌嗜血!深圳大卖卖身之后……:https://www.kjdsnews.com/a/1842198.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流