问题的原因好像是这个方法不是安全的,所以不推荐使用,我是在做毕设时要用到的所以就直接用了(毕设要求没有那么严格的要求)…
Access restriction: The type 'BASE64Encoder' is not API (restriction on required library 'D:\Java\jdk1.6.0_43\jre\lib\rt.jar') eclipse引入import sun.misc.BASE64Encoder; 是红叉,怎么解决? 工具/原料 eclipse 方法/步骤 右键项目,点属性(Properties): java bulid path-->Libraries-->…
Access restriction: The type BASE64Encoder is not accessible due to restrict 2011年11月18日 20:47:06 阅读数:8142 标签: accesslibraryeclipseconstructorjavacompiler更多 个人分类: J2SE   在Eclipse中编写Java代码时,用到了BASE64Decoder,import sun.misc.BASE64Decoder;可是Eclipse提示: A…
  Created by Marydon on 1.情景展示 在eclipse中切换jdk版本后,报错信息为:exception Access restriction: The type 'BASE64Encoder' is not API 2.解决方案 选中项目右键-->Build Path-->Configure  Build Path-->Libraries-->切换jre 相关推荐: 类似文章  …
Access restriction: The type BASE64Encoder is not accessible due to restrict 在Eclipse中编写Java代码时,用到了BASE64Decoder,import sun.misc.BASE64Decoder;可是Eclipse提示: Access restriction : The type BASE64Decoder is not accessible due to restriction on required l…
问题如题: Eclipse中有一种叫做存取限制的机制,来防止你错误使用那些非共享的API.通常来说,Eclipse做的是对的,因为两点,我们不想要使用非共享API的,而且Eclipse知道什么是共享的和非共享的API.但是有时我们想要使用非共享的API,比如说用gmail的来发送和接收邮件,要用到SSL.这个就是非共享的API.这时候我们就要更改一些设置了. 有以下两种解决方法: 方法一: 全局属性Project>preferences>java>Compiler>Errors/W…
在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 最后在http://forums.dzone.com/eclip…
解决方案:在configure build path 中去掉 jre system library,然后重新加载jre system library.....…
错误截图: 解决办法: 1.进入Project --> Properties --> Java Build Path --> Libraries 2.remove 掉 JRE System Library 3.Add Library 重新加入JRE System Library…
今天从svn更新代码之后,由于代码中使用了BASE64Encoder  更新之后报如下错误: Access restriction: The type ‘BASE64Decoder’ is not API (restriction on required library ‘D:\java\jdk1.7.0_45\jre\lib\rt.jar’) 解决其实很简单,把JRE System Library移除重新添加即可. 方法:项目右键–>Properties–>Java Build Path,切…