sun.misc.BASE64Encoder我找不到jar一揽子解决方案
2015-07-26 18:20
531 查看
1.合适的项目 --> 属性(Properties) --> java bulid path --> Libraries -> jre System Library(点加号在前面) --> Access rules(选择这个开头的) --> Edit --> Add --> Resolution选择Accessible,Rule Pattern填上** (两个星号)点击确定就可以!。!
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
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
相关文章推荐
- SQL小结(四)
- java多态--08
- appcompat_v7
- DLL放在指定目录 以及设置dll调用路径
- 学术论文常用英文例句
- 关于jsp页面跳转及参数传递的问题
- BZOJ 1088 扫雷Mine
- “冷启动”问题浅析
- 黑马程序员—c语言基础—Printf函数的介绍以及注意事项
- SQL小结(五)
- Paxos理解之我见(二)
- Altium Designer PCB 常用功能键
- 课设要求,基于STM32F407的防火报警装置
- webstorm快捷键
- CDOJ 482 Charitable Exchange bfs
- Servlet简述
- 《中国东部三大都市圈城市体系演化机制研究》:博士论文,结论是北上广深城市化规模还是不够,三星推荐
- Hadoop2.4.0 中Eclipse 平台的搭建
- Linux md raid
- hnuoj 13313 Smoking gun(SPFA+拓扑序)