Access restriction: The type 'Resource' is not API (restriction on required library 'G:\JAVA\jdk\lib
来源:互联网 发布:linux下如何删除用户 编辑:程序博客网 时间:2024/05/01 05:18
网友说:Eclipse 默认把这些受访问限制的API设成了ERROR。只要把Windows-Preferences-Java-Complicer- Errors/Warnings里面的Deprecated and restricted API中的Forbidden references(access rules)选为Warning就可以编译通过。
这是治标不治本的欺骗自己的方法。
正解如下:
项目属性preferences>java build path>把右侧【libraries中的JRE System Library】删除重新导入.
0 0
- Access restriction: The type 'Resource' is not API (restriction on required library 'G:\JAVA\jdk\lib
- Access restriction: The type 'BASE64Encoder' is not API (restriction on required library 'D:\Java\jd
- Access restriction: The type ‘BASE64Decoder’ is not API (restriction on required library ‘D:\java\jd
- Access restriction: The type Resource is not accessible due to restriction on required library
- Access restriction: The type Resource is not accessible due to restriction on required library
- Access restriction: The type Resource is not accessible due to restriction on required library
- Access restriction: The type Resource is not accessible due to restriction on required library
- Access restriction: The type 'Application' is not API (restriction on required library rt.jar)
- 错误:Access restriction: The type 'OperatingSystemMXBean' is not API (restriction on required library
- Access restriction: The type 'Application' is not API (restriction on required library
- Access restriction: The type 'CEFormatException' is not API (restriction on required library 'D:\dev
- Access restriction: The type 'XXX' is not API (restriction on required library 'C:\Progra
- Access restriction: The type XX is not API (restriction on required library 'XXX/Ja
- The type 'JPEGImageEncoder' is not API (restriction on required library 'D:\jdk-64\jre\lib\rt.jar')
- The type XXX is not API (restriction on required library 'D:\jdk-64\jre\lib\rt.jar')
- Access restriction: The type XXX is not accessible due to restriction on required lib
- Access restriction: The type XXX is not accessible due to restriction on required library XXX
- 解决Access restriction: The type XXXX is not accessible due to restriction on required library
- 如何将Android studio中Library发布到Jcenter
- iOS 自定义转场动画篇
- Android仿微信朋友圈图片查看器
- python apply()函数
- 关于bootstrap中tab的使用
- Access restriction: The type 'Resource' is not API (restriction on required library 'G:\JAVA\jdk\lib
- 再点一次退出最简单逻辑
- 一种通过AIDL实现DLNA共享服务的方法
- Navicat数据库管理软件
- 带下拉列表提示语的TextView
- 一步一步解析java集合框架HashMap源码(3)
- java编程300例:2.输出程序后面的参数
- JavaScript--execCommand指令集
- MySQL索引原理及慢查询优化