异常: Access restriction: The method typeNameToClass(String) from the type ObjectHandler is not accessible due to restriction on required library 解决方法: 这是eclipse设置问题,eclipse默认把这些受访问限制的API设成了ERROR,只要把 Windows-Preferences-Java-Complicer-Errors/Warnings 里…
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…
在Eclipse中采用高版本jdk编译一些低版本的源码时,由于源码中使用了一些高版本中过时的API,可能就会报错,类似于: Access restriction:The type 'Unsafe' is not accessible due to restriction on required library.... 简单解决方法是修改编译器编译的配置: 设置 Windows->Preferences->Java-Complicer->Errors/Warnings->Depre…
The type * is not accessible due to restriction on required library”的错误, 意思是所需要的类库由于受限制无法访问. 解决办法: 1.选中项目->右键->进入Properties视图,选中Java Build Path->点击Libraries->展开JRE System Library[JavaSE-1.6],选中Access rules这一项.如图: 2.Edit->点击Add->在Rule Pat…
Maven报错Archive for required library:某.jar' in project '项目名'cannot be read or is not a valid ZIP file 报错信息:项目出现红色叉号 报错原因:maven自动下载的依赖包错误 解决方法:eclipse顶部–>窗口–>显示视图–>其他–>问题 出现这个视图后,查看错误提示信息,找到错误文件路径,手动删除即可.…
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 -…
[场景]调用com.sun.awt.AWTUtilities时,eclipse提示编译错误: Access restriction: The type 'AWTUtilities' is not API (restriction on required library 'C:\Program Files\Java\jre7\lib\rt.jar') [分析]eclipse项目默认的jre版本较早. com.sun.awt.AWTUtilities是在JDK 6 update10中增加的. [解决…