﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-我问佛：如何才能如你般睿智？ 佛曰：佛是过来人，人是未来佛-随笔分类-J2SE</title><link>http://www.blogjava.net/spy1988/category/49877.html</link><description /><language>zh-cn</language><lastBuildDate>Wed, 26 Oct 2011 21:32:36 GMT</lastBuildDate><pubDate>Wed, 26 Oct 2011 21:32:36 GMT</pubDate><ttl>60</ttl><item><title>Access restriction: The type BASE64Encoder is not accessible due to restrict</title><link>http://www.blogjava.net/spy1988/archive/2011/10/26/362132.html</link><dc:creator>风清扬</dc:creator><author>风清扬</author><pubDate>Wed, 26 Oct 2011 14:29:00 GMT</pubDate><guid>http://www.blogjava.net/spy1988/archive/2011/10/26/362132.html</guid><wfw:comment>http://www.blogjava.net/spy1988/comments/362132.html</wfw:comment><comments>http://www.blogjava.net/spy1988/archive/2011/10/26/362132.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/spy1988/comments/commentRss/362132.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/spy1988/services/trackbacks/362132.html</trackback:ping><description><![CDATA[<div>在Eclipse中编写Java代码时，用到了BASE64Decoder，import sun.misc.BASE64Decoder;可是Eclipse提示： <br />Access restriction : The type BASE64Decoder is not accessible due to restriction on required library C:\Program <br />files\java\jre6\lib\rt.jar <br />Access restriction : The constructor BASE64Decoder() is not  accessible due to restriction on required library C:\Program  files\java\jre6\lib\rt.jar <br />搞不懂是为什么，最后在http://forums.dzone.com/eclipse/384-access-restriction- problems.html找到答案，只需要在project build path中先移除JRE System Library，再添加库JRE  System Library，重新编译后就一切正常了。但是我仍然很疑惑是为什么。。。 <br />原文见：http://zhoushuyan.cn/java/the-type-base64decoder-is-not-accessible-due-to-restriction-on-required-library/ <br />------------------------------ <br />Windows -&gt; Preferences -&gt; Java -&gt; Compiler -&gt; Errors/Warnings -&gt;  <br />Deprecated and trstricted API -&gt; Forbidden reference (access rules): -&gt; change to warning<br /><br />转自：<div>http://palwang.iteye.com/blog/906425</div></div><img src ="http://www.blogjava.net/spy1988/aggbug/362132.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/spy1988/" target="_blank">风清扬</a> 2011-10-26 22:29 <a href="http://www.blogjava.net/spy1988/archive/2011/10/26/362132.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>