问题:Eclipse新建web项目出现The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path

新建web项目后都,jsp页面顶端出现“红色”的报错信息:The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path,经过仔细查看,原来是javaweb工程中没有添加tomcat运行时的相关类导致
解决方法:
方法1.找到tomcat安装路径,在tomcat根目录下的lib文件夹里,有一个servlet-api.jar,将这个jar包导入到项目中即可;
方法2:(1)右击web工程->属性或Build Path->Java Build Path -> Libraries -> Add Library… ->Server Runtime -> Tomcat Server
(2)切换到Java Build Path界面中的Orader and Export,选择Tomcat。

注意:按以上方法操作室,若打开Server Runtime 后一篇空白,需要设置Apache服务器。
步骤:Window->Preferences ->Server ->Runtime->Environment->add->选择Apache的版本后点next,再填入你的Apache服务器软件的安装地址

转载链接:https://blog.csdn.net/Dream_angel_Z/article/details/44875213

Eclipse新建web项目出现The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path相关推荐

  1. 关于eclipse新建web项目,提示:The superclass javax.servlet.http.HttpServlet was not found on the Java解决办法...

    2019独角兽企业重金招聘Python工程师标准>>> 新建jsp页面老提示: Multiple annotations found at this line: - The supe ...

  2. 项目出现 The superclass “javax.servlet.http.HttpServlet“ was not found on the Java Build Path 解决方法

    项目出现 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path ...

  3. eclipse开发javaweb项目中The superclass javax.servlet.http.HttpServlet was not found on the Java Build

    The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 解决方案: ...

  4. 新建jsp报错“The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path”...

    今天新建jsp文件时,就报错"Visual Page Editor has experimental support for Windows 64-bit",然后刚好stackov ...

  5. 解决eclipse出现The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path

    解决eclipse出现The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build ...

  6. 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 Bui ...

  7. The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path类似问题简单解决方案

    The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path类似问题简单 ...

  8. The superclass “javax.servlet.http.HttpServlet“ was not found on the Java Build Path

    项目场景: jsp文件报错 错误为The superclass "javax.servlet.http.HttpServlet" was not found on the Java ...

  9. Eclipse中新建jsp提示The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path

    场景 新建jsp页面,提示如下 解决 右击项目--Build Path--Config Build Path Add Library--Server Runtime next--选择Tomcat--F ...

最新文章

  1. nginx 错误502 upstream sent too big header while reading response header from upst
  2. 发达国家农业模式-国际农民丰收节贸易会:全球农业未来
  3. python多线程实现
  4. AC日记——字符替换 openjudge 1.7 08
  5. 制作五彩纸屑转场动效_何时以及如何将五彩纸屑添加到产品UI
  6. 每个程序员都应该知道的基础数论
  7. c语言入门经典18个程序
  8. 阿里开源自研语音识别模型DFSMN 准确率高达96.04%
  9. openstack instance bootmgr is missing 问题 修复
  10. java如何调用百度地图拾取坐标系统
  11. w10隐藏我的电脑中子文件夹
  12. fromkeys()
  13. 云原生|容器和应用安全运营实践思考
  14. 小程序手机号码中间四位隐藏
  15. Excel 绘制多数据散点图
  16. 【微信小程序开发】IOS与安卓样式兼容问题
  17. java API学习记录
  18. 著名童星刘佳琪深圳市中心举办个人Live音乐汇专辑发布会圆满成功
  19. 2014年最新世界各国面积排名(172个国家)
  20. html转markdown在线工具

热门文章

  1. [视频教程] 如何在Linux深度系统deepin下安装docker
  2. 第十三节、SURF特征提取算法
  3. UVA 1210 Sum of Consecutive Prime Numbers
  4. iOS Xcode个人常用插件
  5. WindowsPhone 7.8 Tiles 1 : WideTile
  6. [Win32]一个调试器的实现(二)调试事件的处理
  7. 老生常谈:工厂模式兄弟姐妹
  8. (转贴) C#编码标准--编码习惯
  9. android 虚拟按键 增减和删除的方法
  10. 【AWSL】之Linux引导过程及服务控制(MBR、GRUB、runlevel、systemcl、init、ntsysv、chkconfig)