首页 > 代码库 > eclipse中java文件报错:The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files

eclipse中java文件报错: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

大概意思就是.class文件引用错误, 联想一下 编译出了问题, JRE问题.

技术分享

 

解决办法:
先在Java Bulid Path中把所有的JRE先remove掉,然后重新引入JRE即可。( 右键工程 > Build Path > Configure Build Path > )

 

eclipse中java文件报错:The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files