首页 > 数据库技术 > 详细

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

时间:2015-05-11 19:32:36      阅读:454      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!