The type java.lang.Object cannot be resolved It is indirectly referenced from required .class files的解决方法

在Eclipse开发的过程中,常遇到以下两处错误,解决方法很简单:
1.The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project

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


解决办法:
1.先在职Java Bulid Path中把所有的JRE先remove掉,然后重新引入JRE即可。(Project->properties->Java Bulid Path )

你可能感兴趣的:(The type java.lang.Object cannot be resolved It is indirectly referenced from required .class files的解决方法)