1、Access restriction: The type Resource is not accessible due to restriction on required library
说的是: E:\Program Files (x86)\MyEclipse\Common\binary\com.sun.java.jdk.win32.x86_64_1.6.0.013\jre\lib\rt.jar
是访问限制报错.
-
方法一:
全局属性Project>preferences>java>Compiler>Errors/Warnings>把右侧的【Deprecated and restricted >Forbidden reference的Error】置为【Warning】.
-
方法二(终极方法:)
项目属性preferences>java build path>把右侧【libraries中的JRE System Library】删除重新导入.
2、MyEclipse环境下,更改JDK后需要修改的配置。
1,installed JREs
2,compiler