The type java.lang.Object cannot be resolved It is indirectly referenced ...
来源:互联网 发布:windows阻止软件安装 编辑:程序博客网 时间:2024/06/05 19:07
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开发的工程时,以上问题就出现了。
问题解决的方案如下:
进入window\preferences\java\Installed JREs
按Add --> Browse...--->选择jre安装路劲(我的jre路径是D:\Program Files\Java\jre1.6.0_02)--->OK
找到你的工程右键点击Properties选项 出现对话框后 选择右边的Libraries选项卡 ---> 单击Add 了Library...--->
选择Jre System Library... ---> Next--->选择Alternate Jre 下的对应版本jre --> Finish ---> Ok
以上问题就可解决。
- Java The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class
- eclipse:The type java.lang.Object cannot be resolved. It is indirectly referenced from required
- 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
- 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
- 杂(三)-The type java.lang.Object cannot be resolved It is indirectly referenced ...
- 解决方案: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
- 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
- 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
- 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
- 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
- The type java.lang.Object cannot be resolved It is indirectly referenced ...
- Android DatePickerDialog and the DialogFragment
- java基本类型byte的取值范围
- CxxTest使用指南(入门篇)
- 关于三个概念:ActiveX、OLE和COM
- 数据包的传输过程
- The type java.lang.Object cannot be resolved It is indirectly referenced ...
- php 常用函数
- 关于sigma(被我写成了segma)
- 黑马程序员_学习日记十_IO二
- 关于虚拟目录继承根Web.Config的问题解决办法
- 基于DSP的GPGGA定位数据提取的代码
- 敏捷建模和极限编程(XP)
- 代理模式
- cocoa绘制图片