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 > )

 

posted @ 2016-09-28 22:38  习惯沉淀  阅读(8981)  评论(0编辑  收藏  举报