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

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

添加后即可解决此问题。

时间: 2024-09-29 11:10:39

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

The type ProxyGenerator is not accessible due to restriction on required library问题的解决

怎样解决类似的问题: Multiple markers at this line-Access restriction: The type ProxyGenerator is not accessible due to restriction on required library D:\java\MyEclipse\Common\binary\com.sun.java.jdk.win32.x86_64_1.6.0.013\jre\lib\rt.jar- Access restriction:

not accessible due to restriction on required library

The type AWTUtilities is not accessible due to restriction on required library D:\Program Files\jdk1.6.0_24\jre\lib\rt.jar”, Access restriction: The type WindowsLookAndFeel is not accessible due to restriction on required library 解决的方法:在project build

Access restriction:The type JPEGCodec is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\rt.jar 报错

报错: Access restriction:The type JPEGCodec is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\rt.jar   解决方法: Project -> Properties -> libraries, 先remove掉JRE System Library,然后再Add Library重新加入. 将jre项目用自己下载的jre

报错: The type ByteInputStream is not accessible due to restriction on required library

报错: Access restriction:The type JPEGCodec is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\rt.jar   解决方法: Project -> Properties -> libraries, 先remove掉JRE System Library,然后再Add Library重新加入.

Access restriction: The constructor SunJCE() is not accessible due to restriction on required library(转)

错误信息: Access restriction: The constructor SunJCE() is not accessible due to restriction on required library C:\Program Files \Java\jre7\lib\ext\sunjce_provider.jar Access restriction: The type TaskTopicResolver is not accessible due to restrict 做NC的时

java 错误:Access restriction: The type Resource is not accessible due to restriction on required library

Eclipse 默认把这些受访问限制的API设成了ERROR.只要把Windows-Preferences-Java-Complicer- Errors/Warnings里面的Deprecated and restricted API中的Forbidden references(access rules)选为Warning就可以编译通过. java 错误:Access restriction: The type Resource is not accessible due to restrict

Access restriction: The type 'Resource' is not API (restriction on required library 'G:\JAVA\jdk\lib

问题: 打入JFrame时候,会报错:Access restriction: The type 'Resource' is not API (restriction on required library 'G:\JAVA\jdk\lib 解决方式: 项目属性preferences>java build path>把右侧[libraries中的JRE System Library]删除重新导入. Access restriction: The type 'Resource' is not AP

Access restriction: The type QName is not accessible due to restriction on required library

There's another solution that also works. I found it on this forum: Go to the Build Path settings in the project properties. Remove the JRE System Library Add it back; Select "Add Library" and select the JRE System Library. The default worked fo

Access restriction : The constructor BASE64Decoder() is not accessible due to restriction on required library

1.问题描述 找不到包  sun.misc.BASE64Encoder 2. 解决方案 只需要在project build path中先移除JRE System Library,再添加库JRE System Library,重新编译后就一切正常了.