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

来源:互联网 发布:oracle如何执行sql文件 编辑:程序博客网 时间:2024/04/28 21:48
在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 )
原创粉丝点击