在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 )
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 )
Eclipse Java 项目配置 JRE 教程
本文解决了Eclipse开发过程中常见的两个错误:找不到 java.lang.Object 类文件及该类型无法解析的问题。通过移除并重新引入 JRE 的步骤,帮助读者快速修复 build path 不完整导致的错误。
1万+

被折叠的 条评论
为什么被折叠?



