[转载]sun.misc.BASE64Encoder找不到jar包的解决方法(超简单,详解)

    xiaoxiao2024-12-28  15

    原文地址:sun.misc.BASE64Encoder找不到jar包的解决方法(超简单,详解) 作者:太空守望者

    1.右键项目-》属性-》java bulid path-》jreSystem Library-》access rules-》resolution选择accessible,下面填上**点击确定即可!!!一般此方法就可以解决问题!

    2.

    在MyEclipse中编写Java代码时,用到了BASE64Decoder,importsun.misc.BASE64Decoder;可是Eclipse提示:  Access restriction: The type BASE64Decoder is not accessible due torestriction on required library C:Program  filesjavajre6librt.jar  Access restriction : The constructor BASE64Decoder() is notaccessible due to restriction on required library C:Programfilesjavajre6librt.jar  解决方案1(推荐):  只需要在project build path中先移除JRE System Library,再添加库JRE SystemLibrary,重新编译后就一切正常了。  解决方案2:  Windows -> Preferences -> Java-> Compiler -> Errors/Warnings->  Deprecated and trstricted API -> Forbidden reference(access rules): -> change to warning
    转载请注明原文地址: https://ju.6miu.com/read-1295092.html
    最新回复(0)