The type javax.http.HttpServletRequest cannot be resolved.It is indirectly……问题之解决

原因:项目中缺少servlet-api.jar文件。

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

时间: 2024-10-20 04:06:33

The type javax.http.HttpServletRequest cannot be resolved.It is indirectly……问题之解决的相关文章

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

eclipse中java文件报错:The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files

问题:The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files 大概意思就是.class文件引用错误, 联想一下 编译出了问题, JRE问题. 解决办法:先在Java Bulid Path中把所有的JRE先remove掉,然后重新引入JRE即可.( 右键工程 > Build Path > Configure Build Path > )

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

在用eclipse开发中,有时候需要导入别人的项目进行学习研究偶尔会出现代码无端端显示一大推错误,甚至连包名都出错的情况,这是后把鼠标移动到包名,系统就会弹出The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files的提示 原因是jdk出错. 解决方法是:更换一个jdk,操作步骤:project->properties->Java Bulid Path

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

最近在做J2ME开发项目,配置环境一切OK,但是打开项目时某些文件提示: The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files,经查阅是因为环境中的JRE冲突引起的,我是通过以下方式解决了问题. 在Eclipse上依次打开Windows->Preferences->Java->Build Path->User Libraries,清空列

杂(三)-The type java.lang.Object cannot be resolved It is indirectly referenced ...

The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files 当你在Eclipse引用不同版本JDK工程时会发生该问题.由于你开发环境中应用了多个版本的JDK 或JRE导致的.Eclipse会按照最初的开发环境默认选择对应的Jre.如Eclipse上有jdk1.4开发的环境工程,当你在引入高版本jdk1.6开发的工程时,以上问题就出现了. 问题解决的方案如下

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

The type java.lang.CharSequence cannot be resolved 这个错误一般是由于需要JDK1.8, 但Eclipse或MyEclipse版本过低(本例中是MyEclipse6.0, 欲使用JDK1.8) 解决办法:升级MyEclipse, 或改用Eclipse 原文地址:https://www.cnblogs.com/visionsl/p/12207867.html

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的librari

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拷贝到项目中,然后编译即可.

maven中解决Type javax.servlet.jsp cannot be resolved to a type

解决方案: 在Maven的pom文件中引发如下依赖jar: <dependency> <groupId>javax.servlet.jsp</groupId> <artifactId>jsp-api</artifactId> <version>2.2.1-b03</version> </dependency> <dependency> <groupId>javax.servlet<