• 使用sun.misc.BASE64Decoder出错解决方案


    Access restriction: The type BASE64Decoder is not accessible due to restriction on required library D:javajre1.5.0_08lib t.jar 


    在网上找到了解决方法如下,我是用第二种方法解决的~~ 
    Solution 1 : 

    import=”sun.misc.BASE64Decoder” 
    出现错误提示为:Access restriction: The type BASE64Decoder is not accessible due to restriction 
    on required library D:ProgramFilesMyEclipsejrelib t.jar 
    Solution 1 : 
    BASE64Decoder 
    这个没有java doc,属于jdk里不推荐使用的工具类 
    解决方案: 
    使用apache common中的Base64替换 
    你可以在这里下载Apache commons codec: 
    http://commons.apache.org/codec/ 
    替换一下就可以了 
    强烈建议不要用sun.misc,是不安全的 ,最好不要使用 

    Solution 2: 
    1. Open project properties. 
    2. Select Java Build Path node. 
    3. Select Libraries tab. 
    4. Remove JRE System Library. 
    5. Add Library JRE System Library.

  • 相关阅读:
    tomcat 无法clean 的bug
    Open Type vs Open resource
    Cannot change version of project facet Dynamic Web Module to 2.4.
    股权稀释
    Java的各种打包方式
    记忆
    【转】给女儿的信
    买房费用
    工作职场
    装修-水电改造
  • 原文地址:https://www.cnblogs.com/interdrp/p/3224102.html
Copyright © 2020-2023  润新知