The type java.lang.Object cannot be resolved解決方法

 最近,在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 )
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章