The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
来源:互联网 发布:wps for mac问世 编辑:程序博客网 时间:2024/04/29 09:53
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
从网上参考了一下,发现是因为导入的项目的运行环境和本机的运行环境不一样导致的,比如我是JDK1.7,引入项目是JDK1.8.就会报错。当你在Eclipse引用不同版本JDK工程时会发生该问题。由于你开发环境中应用了多个版本的JDK 或JRE导致的。Eclipse会按照最初的开发环境默认选择对应的Jre。
问题解决的方案如下:
进入window\preferences\java\Installed JREs
按Add --> Browse...--->选择jre安装路劲--->OK
找到你的工程右键点击Properties选项 出现对话框后 选择右边的Libraries选项卡 ---> 单击Add 了Library...--->
选择Jre System Library... ---> Next--->选择Alternate Jre 下的对应版本jre --> Finish ---> Ok
以上问题就可解决。
0 0
- 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 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
- C++中将string转换为int
- the following sdk components were not installed+win8如何配置VPN
- php5.3.3 gdb breakpoints
- 学UNP所感
- 51nod 1421:最大MOD值
- The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
- 安装php调试程序,xdebug扩展
- python中的list与矩阵的索引
- 南邮 OJ 1034 IBM技术俱乐部主席竞选
- RxJava入门
- 随机生成编码(判断重复)(oracle函数)
- 九度OJ 题目1017:还是畅通工程 (最小生成树)
- sqoop的安装及使用
- uva 10763 Foreign Exchange(排序+二分查找)