Access restriction: The type BASE64Decoder is not accessible due to restriction on required library
2016-02-25 16:30
543 查看
Access restriction: The type BASE64Decoder is not accessible due to restriction on required
library
2014-06-12 10:20 581人阅读 评论(0) 收藏 举报分类:
eclipse(22)
我们平时看项目的时候,会遇到一些项目中引用了如下亮哥包,它们是 jdk 自带的一些工具类,但是问题是编译器总是报错,这个时候我们可以修改 Eclipse 对于此类问题的提示级别:
import sun.misc.BASE64Decoder;
import sun.misc.BASE64Encoder;
调试一个JAVA程序,Eclipse下报错:
The method encode(byte[]) from the type CharacterEncoder is not accessible due to restriction on required library C:\Program Files\Java\jdk1.6.0_21\jre\lib\rt.jar
其实要解决它也很容易,在Window -preferences - Java - Compiler - Errors/Warnings界面的Deprecated and restricted API下。把Forbidden reference (access rules): 的规则由默认的Error改为Warning即可。
相关文章推荐
- UIScrollView 节省空间
- UI用塑料泡沫设计草图
- easyui datagrid上传服务器参数page改名
- hdu 4027 Can you answer these queries?
- iOS initWithFrame:frame] 与 [UIButton buttonWithType] 对比
- CodeForces 626 A. Robot Sequence(水~)
- Android uiautomator环境搭建
- angular 服务(factory service constant value provider)学习笔记
- Divide and Conquer
- 1101 Quick Sort
- UIImageView用法
- 浅谈 easyui tabs 的href和content属性
- java request获取各种数据
- incredibuild 命令行 error D8037
- 用数据库连接池解决org.hibernate.exception.JDBCConnectionException:could not execute query
- Ultra-QuickSort(树状数组求逆序对数)
- IOS之UITabBarController
- 基于pt-query-digest的慢查询日志持续追踪 推荐
- 从源代码安装Guidance
- ./configure: error: the GeoIP module requires the GeoIP library.