Access restriction: The type 'BASE64Encoder'找不到Jar包
来源:互联网 发布:台湾用淘宝嘛 编辑:程序博客网 时间:2024/06/06 09:06
1.右键项目-》属性-》Java bulid path-》jre System Library-》access rules-》resolution选择accessible,下面填上** 点击确定即可!!!
2.
在MyEclipse中编写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
解决方案1(推荐):
只需要在project build path中先移除JRE System Library,再添加库JRE System Library,重新编译后就一切正常了。
解决方案2:
Windows -> Preferences -> Java -> Compiler -> Errors/Warnings ->
Deprecated and trstricted API -> Forbidden reference (access rules): -> change to warning
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
解决方案1(推荐):
只需要在project build path中先移除JRE System Library,再添加库JRE System Library,重新编译后就一切正常了。
解决方案2:
Windows -> Preferences -> Java -> Compiler -> Errors/Warnings ->
Deprecated and trstricted API -> Forbidden reference (access rules): -> change to warning
0 0
- Access restriction: The type 'BASE64Encoder'找不到Jar包
- Access restriction: The type 'BASE64Encoder'
- 错误Access Restriction: The Type BASE64Encoder 的解决
- 出现Access restriction: The type BASE64Encoder is not accessible 错误
- Access restriction: The type BASE64Encoder is not accessible due to restriction on required library
- Eclipse报错Access restriction: The type BASE64Encoder is not accessible due to restriction on required
- Access restriction: The type 'BASE64Encoder' is not API (restriction on required library 'D:\Java\jd
- Access restriction: The type BASE64Encoder is not accessible due to restriction on required library
- 解决项目报错出现Access restriction: The type BASE64Encoder is not accessible due to restriction
- Access restriction: The type BASE64Encoder is not accessible due to restrict
- Access restriction: The type BASE64Encoder is not accessible due to restrict on required library
- Access restriction: The type BASE64Encoder is not accessible due to restrict
- 解决“Access restriction: The type BASE64Encoder is not accessible due to restrict”的问题
- Access restriction: The type BASE64Encoder is not accessible due to restrict
- Access restriction: The type BASE64Encoder is not accessible due to restrict
- Access restriction: The type BASE64Encoder is not accessible due to restrict
- Access restriction: The type BASE64Encoder is not accessible due to restrict
- Access restriction: The type BASE64Encoder is not accessible due to restrict
- php文件复制、重命名、删除操作
- SElinux 常用命令
- JDBC工具类
- JavaScript基础之对象
- VS2010 可以使用 #pragma once 解决一次编译的问题
- Access restriction: The type 'BASE64Encoder'找不到Jar包
- Qt浅谈之二十二Qt样式表
- Spring aop集成环境配置出错解决方案
- OJ——求三角形面积
- ElasticSearch查询详解
- Ubuntu下配置Telnet服务器
- char,char*,char**数组
- 2016亚洲区域赛(大连站) 总结[需要更加努力~]
- java--抽象类