The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from required .class files

我的方法:是缺少servlet的引用库,解决如下
1.工程右键-properties->java build path
2.在java build path的libraries tab页中选择Add external Jars...按钮。server runtime --》next---》选择你要选用的tomcat即可问题解决了。网上别的方法(我没有尝试过):
1.工程右键-properties->java build path
2.在java build path的libraries tab页中选择Add external Jars...按钮

3.选择eclipse的安装目录,他的是绿色版本,他本机的路径如下,你自己需要根据自己的路径查找添加。E:\eclipse-java-indigo-SR1-win32\eclipse\plugins 选择javax.servlet.jsp_2.0.0.v201101211617.jar;javax.servlet_2.5.0.v201103041518.jar 进行添加即可 注释:由于版本不同,文件包名可能稍有区别。
时间: 2024-11-10 08:33:43

The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from required .class files的相关文章

The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from

原因:项目中缺少servlet-api.jar文件. 解决办法:将D:/Program Files/Apache Software Foundation/Tomcat 5.5/common/lib下的servlet-api.jar拷贝到项目中,然后编译即可.

Java微信开发_Exception_01_The type org.xmlpull.v1.XmlPullParser cannot be resolved. It is indirectly referenced from required .class files

一.源码: package com.souvc.weixin.util; import java.io.InputStream; import java.io.Writer; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import org.dom4j.Document; import org.dom4j.E

The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files

JDK版本的问题. 解决方法: 原来jdk1.8不向下兼容,用回1.6的就可以了. 下图有三个jdk,前两个自己装的,第三个MyEclipse自带的.

The type java.lang.reflect.AnnotatedElement cannot be resolved. It is indirectly referenced from required .class files

问题原因 jdk版本的问题 解决方案 切换一下jdk就可以了 JDK 切换方式 原文地址:https://www.cnblogs.com/7q4w1e/p/10012798.html

The type javax.servlet.http.HttpServletRequest cannot be resolved.

The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from required .class files   是缺少serverlet的引用库,解决如下 1.工程右键-properties->java build path 2.在java build path的libraries tab页中选择Add external Jars...按钮 3. 选择eclip

Java异常The type javax.servlet.http.HttpServletRequest cannot be resolved

The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from required .class files. 这个错误表示的意思还不太清楚,可能是,myeclipse不会自动找这个包servlet.jar,就算在相应工程/WebRoot/WEB-INF/lib里面,而且奇怪的是该错误提示总是在代码的最前面 ( 第一行位置 ) 解决办法:加入相关类的 jar 包到

The type javax.servlet.http.HttpServletRequest cannot be resolved.的解决方法

Bug的描述 The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from required .class files 解决方法 是缺少serverlet的引用库,解决如下 1.工程右键-properties->java build path 2.在java build path的libraries tab页中选择Add external Jars...按钮

ERROR:The type javax.servlet.http.HttpServletRequest cannot be resolved.

MyEclipse中附加工程出现如下错误:The type javax.servlet.http.HttpServletRequest cannot be resolved.  解决方法如下: (1)右键工程找到build path项 (2)找到Add Libraries (3)点击myEclipse Libraries,Next (4)添加JavaEE 5

The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files

问题描述 Exception in thread "main" java.lang.Error: Unresolved compilation problems: The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files The method getText() from the type TagNode refers to the