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

时间:2021-05-05 05:32:29

问题:The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files

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

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

 

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