Access restriction : The type BASE64Decoder is not accessible due to restriction on required library
来源:互联网 发布:空中救援队 知乎 编辑:程序博客网 时间:2024/05/18 11:13
在Eclipse中编写Java代码时,用到了BASE64Decoder,import sun.misc.BASE64Decoder;可是Eclipse提示: Access restriction : The type BASE64Decoder is not accessible due to restriction on required library C:\Program
files\java\jre6\lib\rt.jar
Access restriction : The constructor BASE64Decoder() is not accessible due to restriction on required library C:\Program files\java\jre6\lib\rt.jar
搞不懂是为什么,最后在http://forums.dzone.com/eclipse/384-access-restriction- problems.html找到答案,只需要在project build path中先移除JRE System Library,再添加库JRE System Library,重新编译后就一切正常了。但是我仍然很疑惑是为什么。。。
原文见:http://zhoushuyan.cn/java/the-type-base64decoder-is-not-accessible-due-to-restriction-on-required-library/
------------------------------
Windows -> Preferences -> Java -> Compiler -> Errors/Warnings ->
Deprecated and trstricted API -> Forbidden reference (access rules): -> change to warning
转自:
http://palwang.iteye.com/blog/906425
0 0
- Access restriction: The type BASE64Decoder is not accessible due to restriction on required library
- Access restriction: The type BASE64Decoder is not accessible due to restriction on required library
- Access restriction : The type BASE64Decoder is not accessible due to restriction on required library
- Access restriction: The type BASE64Decoder is not accessible due to restriction on required
- Access restriction: The type BASE64Decoder is not accessible due to restriction on required
- 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
- Access restriction: The type is not accessible due to restriction on required library问题处理
- Access restriction: The type XXX is not accessible due to restriction on required library XXX
- Access restriction: The type JPEGCodec is not accessible due to restriction on required library
- Access restriction: The type BASE64Encoder is not accessible due to restriction on required library
- Access restriction: The type XXXX is not accessible due to restriction on required library
- Access restriction: The type BMPImageReader is not accessible due to restriction on required library
- Access restriction: The type XXX is not accessible due to restriction on required library
- Access restriction: The type JPEGCodec is not accessible due to restriction on required library
- access restriction: The type * is not accessible due to restriction on required library
- Access restriction: The type JFrame is not accessible due to restriction on required library
- Access restriction: The type XXXX is not accessible due to restriction on required library
- iOS-此证书的签发者无效
- android 如何计算PopupWindow宽和高
- session机制详解
- Elasticsearch与Solr搜索引擎区别
- 关于导航栏问题的123
- Access restriction : The type BASE64Decoder is not accessible due to restriction on required library
- 单点登录在项目中的进一步理解
- excel怎么转换成pdf文件格式
- TexturePacker参数
- 利用Jmeter对简易投票系统进行刷票的实践
- Linux学习笔记之权限管理
- Libgdx仿安卓R文件通过Id访问资源
- 技术宅男逆袭 牛人自制激光虚拟投影键盘
- Android的bitmap和优化