错误:javax.servlet.http.HttpServlet" was not found on the Java Build Path

我们在用Eclipse进行Java web开发时,可能会出现这样的错误:

The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path。我们该怎么解决这个问题呢?

下面是具体的解决方法:

右击web工程-》属性或Build Path-》Java Build Path->Libraries-> Add Libray...->Server Runtime -》Tomcat Server

时间: 2024-10-16 03:22:02

错误:javax.servlet.http.HttpServlet" was not found on the Java Build Path的相关文章

用Eclipse开发JavaWeb项目:错误信息 "javax.servlet.http.HttpServlet" was not found on the Java Build Path

1.错误描述:JSP页面顶端出现“红色”的报错信息:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 2.错误原因:原来Javaweb工程类中没有添加Tomcat运行时相关类导致 3.解决办法: 1).右击web工程->Properties或Build Path->Java Build Path->Libraries-> Add Libray.

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

我们在用Eclipse进行Java web开发时,可能会出现这样的错误:The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path.我们该怎么解决这个问题呢? 解决办法是重新构建路径就是Build Path 然后添加Server Runtime 就是服务器运行环境 原文地址:https://www.cnblogs.com/qichunlin/p/9329503.html

web项目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 the Java Build Path. 原因是Javaweb工程类中没有添加Tomcat运行时相关类导致. 解决方式如下:出错的文件---->>build path---->>config build path---->>java build path---->>libr

【明哥报错簿】之【 "javax.servlet.http.HttpServlet" was not found on the Java Build Path || HttpServletRequest/HttpServletResponse cannot be resolved to a type】

The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path login.jsp /day12_estore/WebRoot line 1 JSP Problem 解决: 1. 我们遇到的错误显示如下: 2.我们右击有错误提示的文件夹,如下: 3.我们点击"配置构建路径",如下: 4.我们再点击"添加库",如下: 5.我们选中上图中标出的选

篇一: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 解决方法:选中项目-->右键选中"Build Path"-->Configure Build Path 点击Add Library 点击Next 最后记得Apply一下,然后就OK了

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

这篇短文里有两种解决方案,另外一篇短文里还有第三种解决方案,查看请点击这里 1. 报错如图: 这是错误提示:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 2. 错误分析: 本来想着是因为缺少web容器,也就是Servlet容器. 所以我在pom.xml文件里添加了tomcat插件: 1 <plugins> 2 <plugin> 3 <

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

我们在用Eclipse进行Java web开发时,可能会出现这样的错误:The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path.我们该怎么解决这个问题呢? 我们遇到的错误显示如下:  我们右击有错误提示的文件夹,如下:  我们点击”配置构建路径“,如下:  我们再点击”添加库“,如下:  我们选中上图中标出的选项,再点击下一步,如下:  我们再点击”完成“,如下:  我们再点击”正常“,

【Bug笔记】The superclass &quot;javax.servlet.http.HttpServlet&quot; was not found on the Java Build Path

由于今天下载了一个eclipse se的版本,所以想把原本eclipse ee这个软件外面的文件夹eclipse名字该成eclipse ee,方便以后的区分和管理,改了后重新打开eclipse ee文件夹下的eclipse.exe,就出现了这个错误(如下图a). 究其原因发现以前配置的eclipse信息完全初始化了,就像第一次打开elicpse一样.所以重新配置tomcat服务器,Window->Preferences->server->Runtime Environment->a

Eclipse中新建Maven Web项目报错:The superclass &quot;javax.servlet.http.HttpServlet&quot; was not found on the Java Build Path

在maven web项目中的index.jsp中的错误信息如下: The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 从错误信息可以看出来,找不到该类,也就是说找不到相应jar包. 所以解决方法就是引用相应jar包即可. 前提: 需要设置Server Runtime, Window -> Perferences -> Server -> Runtime