老是出现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 )
二。我的解决办法:
卸载JDK,JRE,重新下载了最新的JDK,JRE,重新配置环境变量,然后就神奇的不会出现上述的错误了!
JDK下载地址:http://www.uzzf.com/soft/395.html
JRE下载地址:http://www.crsky.com/soft/37524.html
分享出来解决办法,希望可以帮助到大家!