The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
2016-06-16 22:28
447 查看
The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
用eclipse做jsp文件,自动创立的文件表头出现这个报错,应该怎么处理?tomcat的插件已经安装上了。
有一处刚发现了,是中英文标点问题,这两处,一个是The word 'username' is not correctly spelled,还一个是The document body. Contains all the content for the page.
JSP页面顶端出现“红色”的报错信息:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path。原来Javaweb工程类中没有添加Tomcat运行时相关类导致。 下面是具体的解决方法: 1、右击web工程-》属性或Build Path-》Java Build Path->Libraries-> Add Libray...->Server Runtime -》Tomcat Server 2、切换到Java Build Path界面中的Orader and Export,选择Tomcat。 注意: 按以上方法操作时,若打开Server Runtime后一片空白,需要设置Apache服务器。设置方法为:window->Preferences->Server->Runtime Environment -> add --> 选择Apache的版本后点Next,再填入你apache服务器软件的安装(解压后)地址。
相关文章推荐
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- 聊聊高并发系统之限流特技
- nagios插件之监控tcp的established数量
- 聊聊深度学习这档子事(1):待定系数法
- TCP自时钟/拥塞控制/带宽利用之脉络半景解析
- ISO网络参考模型分层及每一层功能描述
- 在与SQL Server 建立 连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器
- android之HttpURLConnection 字段解析
- 模拟http响应头
- 从神经网络到深度学习
- Linux TCP 粘/拆包 与 Netty TCP粘/拆包的 区别
- 网络信息安全学习平台---注入关第3题
- Netty -- TCP粘包/拆包
- [Android] AsyncTask使用实例---加载网络图片
- 网络信息安全学习平台---脚本关第15题
- 网络编程知识总结
- android的ViewPager实现加载网络图片并自动轮播
- Neural Networks and Deep Learning 学习笔记(三)
- Xcode 7访问http资源时报错
- https传输