The type java.lang.Object cannot be resolved 解决办法

老是出现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



分享出来解决办法,希望可以帮助到大家!



  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值