码迷,mamicode.com
首页 > 编程语言 > 详细

Eclipse报错 due to restriction on required library C:/Java/jdk1.7.51/jre/lib/rt.jar 解决方案

时间:2015-04-23 15:15:17      阅读:152      评论:0      收藏:0      [点我收藏+]

标签:

Eclipse报错 due to restriction on required library C:/Java/jdk1.6.0_10/jre/lib/rt.jar 解决方案

Eclipse 编译时报错:  

Access restriction:The type NEW is not accessible due to restriction on required library C:/Java/jdk1.6.0_10/jre/lib/rt.jar 

解决方法如下: 
1、进入Project --> Properties --> Java Build Path --> Libraries

2、remove 掉 JRE System Library

3、Add Library 重新加入JRE System Library

添加后即可解决此问题。

Eclipse报错 due to restriction on required library C:/Java/jdk1.7.51/jre/lib/rt.jar 解决方案

标签:

原文地址:http://www.cnblogs.com/yanduanduan/p/4450252.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!