The type java.lang.Object cannot be resolved解决方法 Z转

来源:互联网 发布:chart.js x轴太挤 编辑:程序博客网 时间:2024/05/22 06:33
本文转自: http://guojie.blog.51cto.com/59049/48106
 
 
原文如下:
 
版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://guojie.blog.51cto.com/59049/48106
 最近,在Eclipse中导入其他项目,总是报下面2个错误。将项目所需的jar都引入了。依然还存在这个问题。

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.将JRE先remove掉,然后重新引入JRE即可。(Project->properties->Java Bulid Path )

本文出自 “程序人生” 博客,请务必保留此出处http://guojie.blog.51cto.com/59049/48106

本文出自 51CTO.COM技术博客

 

 原文地址 http://guojie.blog.51cto.com/59049/48106  TAG java eclipse
原创粉丝点击