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

原创 2015年07月10日 23:21:59
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服务器软件的安装(解压后)地址。
版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

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

1.配置Tomcat   Eclipse下方的选项卡【Servers】点击【No servers are available.Click this link to create  a new ser...
  • celiacy
  • celiacy
  • 2017年03月07日 09:28
  • 184

The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path表头报错解决

用eclipse做jsp文件,自动创立的文件表头出现这个报错,应该怎么处理? JSP页面顶端出现“红色”的报错信息:The superclass "javax.servlet.http.HttpSe...

eclipse-- 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 解决方...

创建一个jsp页面报:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

主要是缺少Tomcat运行时相关类导致的,简单的说就是找不到tomcat(服务器),解决方法如下: 1、报错页面: 2、右击所在的项目->Build Path->Configu...

如何解决JSP页面顶端报错 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

题目有点长,昨天刚接触jsp,按照网上的教程安装完 tomcat 和 eclipse EE 之后,新建jsp文件却出现了如下报错: The superclass "javax.servlet.http...

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

完整错误信息:THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS"AS IS" AND ANY EXPRESS OR...

JSP报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path"

eclipse刚安装好,新建工程的时候jsp页面顶端出现错误: The superclass “javax.servlet.http.HttpServlet” was not found on t...

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的解决办法

Java web开发时,The superclass javax.servlet.http.HttpServlet was not found the Java Build Path

我们遇到的错误显示如下: 我们右击有错误提示的文件夹,如下: 我们点击”配置构建路径“,如下: ...
  • hzp666
  • hzp666
  • 2017年02月27日 13:06
  • 345

新建JSP无法运行出现错误The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Pat解决办法

The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
  • UckyK
  • UckyK
  • 2014年10月13日 23:33
  • 2388
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
举报原因:
原因补充:

(最多只允许输入30个字)