Eclipse 默认把这些受访问限制的API设成了ERROR。只要把Windows-Preferences-Java-Complicer- Errors/Warnings里面的Deprecated and restricted API中的Forbidden references(access rules)选为Warning就可以编译通过。
相关文章
- 07-02Java,AWTUtilities,eclipse报编译错误:Access restriction: The type 'AWTUtilities' is not API (restriction on required library 'C:\Program Files\Java\jre7\lib\rt.jar')
- 07-02Access restriction: The type TaskTopicResolver is not accessible due to restrict--编译Hadoop时有个SecurityUtils有错误,处理方法
- 07-02Access restriction: The type Resource is not accessible due to restriction on required library
- 07-02Access restriction:The type JPEGCodec is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\rt.jar 报错
- 07-02报错: Access restriction: The type JPEGImageEncoder is not accessible due to restriction on required library
- 07-02解决:高版本jdk编译低版本代码时eclipse提示Access restriction:The type 'Unsafe' is not accessible due to restriction on required library
- 07-02Access restriction: The type BASE64Encoder is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\rt.jar
- 07-02Access restriction: The type QName is not accessible due to restriction on required library
- 07-02java 错误:Access restriction: The type Resource is not accessible due to restriction on required library
- 07-02Access restriction: The type VerticalTextSpinner is not accessible due to restriction on required library........