123

eclipse错误:Access restriction: The type 'BASE64Decoder' is not API

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,切换到libraries tab页,找到JRE System Library移除, 然后再点击Add Library–>JRE System Library添加即可。

 

 

如果import后仍然是报错!

 

 

图文来源:

https://blog.csdn.net/gnail_oug/article/details/53636428

https://blog.csdn.net/lvyanfen6/article/details/51121586

 

posted on 2018-12-07 10:17  J依情  阅读(2148)  评论(0编辑  收藏  举报

导航