码迷,mamicode.com
首页 > 数据库 > 详细

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

时间:2015-05-11 19:32:39      阅读:127      评论:0      收藏:0      [点我收藏+]

标签:

怎样解决类似的问题:

  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: The method generateProxyClass(String, Class[]) from 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

原因:

Eclipse 默认把这些受访问限制的API设成了ERROR。

解决方法:
Windows -> Preferences -> Java -> Compiler -> Errors/Warnings -> Deprecated and trstricted API -> Forbidden reference (access rules): -> change to warning

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

标签:

原文地址:http://www.cnblogs.com/Jc-zhu/p/4495141.html

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