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…
在Eclipse中采用高版本jdk编译一些低版本的源码时,由于源码中使用了一些高版本中过时的API,可能就会报错,类似于: Access restriction:The type 'Unsafe' is not accessible due to restriction on required library.... 简单解决方法是修改编译器编译的配置: 设置 Windows->Preferences->Java-Complicer->Errors/Warnings->Depre…
报错: 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 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…
转: 解决办法:Access restriction: The type JPEGImageEncoder is not accessible due to restriction 2011年11月27日 20:17:40 IT面试社区 阅读数 29477 报错: Access restriction:The type JPEGCodec is not accessible due to restriction on required library C:\Program Files\Ja…