Access restriction: The type BASE64Decoder is not accessible due to restriction on required library
来源:互联网 发布:怎么办淘宝 编辑:程序博客网 时间:2024/05/22 02:12
Access restriction: The type BASE64Decoder is not accessible due to restriction on required library
分类:
我们平时看项目的时候,会遇到一些项目中引用了如下亮哥包,它们是 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即可。
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
- 用OC编写的各种排序算法
- spring中的注解
- Android 4.4 沉浸式状态栏的实现
- Android M PackageManagerService解析
- 详解 iOS navigationBar 的设置问题
- Access restriction: The type BASE64Decoder is not accessible due to restriction on required library
- 观察者模式(Observer 模式)
- Activity知识梳理
- error : cannot open source file "SDKDDKVer.h"
- HTTP协议详解
- BFS Vs DFS (Level Order Traversal)
- Visual Studio常用快捷键
- hdoj1253
- Java虚拟机类加载机制浅谈