Posted on 2007-08-02 10:00 i have only belief 阅读(5376) 评论(7) 编辑 收藏 引用 所属分类: JAVA(JSP)
遇到The type XXX cannot be resolved. It is indirectly referenced from required .class files错误.....,查找的解决办法如下:
一: 错误提示: It is indirectly referenced from required .class file 错误的解决
原因:你正要使用的类调用了另一个类,而这个类又调用了其他类,这种关系可能会有好多层。而在这个调用的过程中,某个类所在的包的缺失就会造成以上那个错误。
解决方法:导入缺失的包
二:
The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
出現以上訊息的原因是因為你裝了多個版本的jre或jdk的關係。本來Eclipse在建立專案時,會自動參照你的jre路徑,但多個版本就沒辦法了。
你只能手動建立…
1. 進入window\preferences\java\Installed JREs
1)按Add
2)輸入JRE Name, 例JDK1.5.0.03
3)JRE home directory, 選擇安裝的路徑
4)按OK
2. 進入Project\properties\Java Bulid Path
1)Add library
2)選JRE System Library後按Next
3)選workplace default JRE後按finish...
三、
问题解决之道在于 将jsp-api.jar加入到类路径.
最近,在Eclipse中导入其他项目,总是报下面2个错误。将项目所需的jar都引入了。依然还存在这个问题。
1.The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project
2.The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
解决办法:
1.将JRE先remove掉,然后重新引入JRE即可。(Project->properties->Java Bulid Path )
分享到:
相关推荐
The type org.apache.tools.ant.Task cannot be resolved. It is indirectly referenced from required .class files错误....., 解决办法:在工程中加入此jar包
一、Eclipse提示错误The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files 调试Reflact时,Eclipse一直提示The type java.lang.CharSequence cannot be...
It is indirectly referenced from required .class > ★BasicNameValuePair cannot be resolved to a type > ★HttpPost cannot be resolved to a type > ★NameValuePair cannot be resolved to a type > ★...
解决The type org.springframework.dao.support.DaoSupport cannot be resolved.bao报错
The type org.apache.tools.ant.Task cannot be resolved. It is indirectly referenced from required .class files 部署openfire4.2.1
The type com.google.j2objc.annotations.ReflectionSupport$Level cannot be resolved. It is indirectly referenced from required .class files
The type org.xmlpull.v1.XmlPullParser cannot be resolved. It is indirectly referenced from required .class files报错时导入xmlpull_1_0_5.jar
The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly referenced from required .class files 解决方法: 导入spring-tx-4.2.2.RELEASE.jar包。
validation-api-2.0.0.Final.jar 主要用于支持Maven项目,缺失可引起以下异常The type javax.validation.Payload cannot be resolved. It is indirectly referenced from required .class files
The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly referenced异常缺少的包
导入工程的“The import android cannot be resolved”错误解决方法
cocos The import com.loopj cannot be resolved 是缺失了jar包。导入lib文件夹,或者刷新eclipse就好了。
jce.jar/jsse.jar解决The import javax.crypto cannot be resolved的问题
org.apache.commons.lang.exception.NestableRuntimeException cannot be resolved 解决 替换JAR包即可
主要介绍了java eclipse 出现 xxx cannot be resolved to a type 错误解决方法的相关资料,需要的朋友可以参考下
jaxrpc.jar下载 The type javax.xml.rpc.ServiceException cannot be resolved.It is indirectly。。。用于webServices 的 客户端和服务端的解析 工具
rsslib4j-0.2.jar jar包,解决java报错找不到资源包问题 The import org.gnu cannot be resolved。 报错 import org.gnu.stealthp.rsslib.*; RSSChannel、RSSException、RSSHandler、RSSItem、RSSParser
测试类报错Test cannot be resolved to a type-附件资源
avalon-framework-4.1.3.jar commons-collections-3.2.jar commons-io-1.4.jar commons-lang-2.4.jar commons-logging-1.1.jar commons-vfs-20091118-pentaho.jar kettle-core-4.4.0-GA.jar kettle-db-4.4.0-GA.jar ...