错误:HttpServlet was not found on the Java

转载 2015年07月08日 17:04:06

原文地址:http://jingyan.baidu.com/article/f79b7cb34f40569144023ef9.html


我们在用Eclipse进行Java web开发时,可能会出现这样的错误:The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path。我们该怎么解决这个问题呢?

工具/原料

  • 电脑
  • Java web的开发环境

方法/步骤

  1. 遇到的错误显示如下:

    错误:HttpServlet was not found on the Java




  2. 右击有错误提示的文件夹,如下:

    错误:HttpServlet was not found on the Java





  3. 点击”配置构建路径“,如下:

    错误:HttpServlet was not found on the Java




  4. 再点击”添加库“,如下:

    错误:HttpServlet was not found on the Java





  5. 选中上图中标出的选项,再点击下一步,如下:

    错误:HttpServlet was not found on the Java





  6. 再点击”完成“,如下:

    错误:HttpServlet was not found on the Java





  7. 再点击”正常“,即可完成设置。这样我的错误就会消失了,如下:

    错误:HttpServlet was not found on the Java


相关文章推荐

解决方案 错误:HttpServlet was not found on the Java build path

当我们打开一个jsp页面的时候,有时候会出现not found on the java build path. 问题原因: 可能原因是导入的tomcat 服务器找不到(但是不会报错) 解决的方...

新建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
  • 2392

错误:HttpServlet was not found on the Java

 我们在用Eclipse进行Java web开发时,可能会出现这样的错误:The superclass javax.servlet.http.HttpServlet was not found ...

创建一个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...

关于eclipse提示:"The superclass "javax.servlet.http.HttpServlet" was not found on the Java"解决办法

by _Json 新建jsp页面老提示: Multiple annotations found at this line:   - The superclass "javax.servlet...
  • peade
  • peade
  • 2016年05月10日 23:28
  • 2326

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

myeclipse导入项目时,出现“javax.servlet.http.HttpServlet" was not found on the Java Build Path”

导入项目时,出现“javax.servlet.http.HttpServlet" was not found on the Java Build Path”的问题...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:错误:HttpServlet was not found on the Java
举报原因:
原因补充:

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