The type java.lang.Object cannot be resolved It is indirectly referenced ...
来源:互联网 发布:网络教育本科学位难吗 编辑:程序博客网 时间:2024/06/05 14:55
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
以上问题就可解决。
0 0
- 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 ...
- 设计模式学习笔记--适配器模式
- 【自考总结】 信息资源管理
- linux下指令集
- 获取列表中多个相同元素的索引值
- Hibernate中Transaction事务的批量提交
- The type java.lang.Object cannot be resolved It is indirectly referenced ...
- More Effective C++----(10)在构造函数中防止资源泄漏
- OpenCV-Python教程(6)(7)(8): Sobel算子 Laplacian算子 Canny边缘检测
- Leetcode - Length of Last Word
- hdu2059
- 解决android中listview中嵌套checkbox滑动时checkbox状态改变问题
- Linux-27-linux基础重要命令04(L005-09)
- UVA 531Compromise
- vim 使用