`

The type XXX cannot be resolved. It is indirectly referenced from required .clas

阅读更多
http://www.cnitblog.com/wjw/archive/2007/08/02/31125.html
遇到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...
分享到:
评论

相关推荐

    apache-ant-1.8.2.jar

    The type org.apache.tools.ant.Task cannot be resolved. It is indirectly referenced from required .class files错误....., 解决办法:在工程中加入此jar包

    Java编程排错技巧

    一、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...

    httpcomponents-client-4.5.5-bin和src_20180518.zip

    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报错

    在开发Spring框架相关的Java应用时,可能会遇到"The type org.springframework.dao.support.DaoSupport cannot be resolved"的错误提示。这个错误通常意味着编译环境无法找到`DaoSupport`类,这是Spring DAO模块中的...

    apache-ant-1.8.2.jar DDD

    The type org.apache.tools.ant.Task cannot be resolved. It is indirectly referenced from required .class files 部署openfire4.2.1

    j2objc-annotations-1.1.jar

    The type com.google.j2objc.annotations.ReflectionSupport$Level cannot be resolved. It is indirectly referenced from required .class files

    xmlpull_1_0_5.jar和xstream-1.4.jar

    The type org.xmlpull.v1.XmlPullParser cannot be resolved. It is indirectly referenced from required .class files报错时导入xmlpull_1_0_5.jar

    spring-tx-4.2.2.RELEASE.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

    validation-api-2.0.0.Final.jar 主要用于支持Maven项目,缺失可引起以下异常The type javax.validation.Payload cannot be resolved. It is indirectly referenced from required .class files

    java eclipse 出现 xxx cannot be resolved to a type 错误解决方法

    Java Eclipse 出现 "xxx cannot be resolved to a type" 错误解决方法 Java Eclipse 是一个功能强大且广泛使用的集成开发环境(IDE),但是在使用过程中可能会出现各种错误信息,例如 "xxx cannot be resolved to a...

    spring-tx.jar

    The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly referenced异常缺少的包

    导入工程的“The import android cannot be resolved”错误解决方法

    在进行Android应用开发时,尤其是使用Eclipse作为集成开发环境(IDE)时,开发者可能会遇到一个常见的错误:“The import android cannot be resolved”。这个错误通常发生在尝试导入或打开一个已存在的Android项目...

    The import com.loopj cannot be resolved 的解决方案

    在编程过程中,我们时常会遇到各种编译错误,其中一种常见的问题是"The import com.loopj cannot be resolved"。这个错误信息表明你的项目无法找到`com.loopj`包,这通常是由于缺少必要的库文件导致的。`com.loopj`...

    request payload传值解决-qs.min.js

    前端以 request payload形式传参,通过qs.min.js实现传参,实现后台接收 。

    jar.zip解决The import javax.crypto cannot be resolved

    然而,有时在开发过程中,我们可能会遇到"The import javax.crypto cannot be resolved"这样的错误提示,这意味着编译器无法找到这个包或者其依赖的库。这通常是由于JDK的默认配置中未包含某些安全相关的扩展,如...

    estableRuntimeException cannot be resolved 解决

    在Java编程环境中,我们经常会遇到编译错误提示“XXX cannot be resolved”,这通常意味着系统无法找到指定的类或方法。在这种情况下,"org.apache.commons.lang.exception.NestableRuntimeException cannot be ...

    jaxrpc.jar下载

    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

    rsslib4j-0.2.jar jar包,解决java报错找不到资源包问题 The import org.gnu cannot be resolved。 报错 import org.gnu.stealthp.rsslib.*; RSSChannel、RSSException、RSSHandler、RSSItem、RSSParser

    详解 问题:HttpServlet cannot be resolved to a type

    在开发Java Web应用程序时,你可能会遇到一个常见的错误:“HttpServlet cannot be resolved to a type”。这个错误通常发生在尝试使用`HttpServlet`类时,而Eclipse IDE无法找到对应的类定义。`HttpServlet`是Java ...

Global site tag (gtag.js) - Google Analytics