eclipse报Access restriction: The type 'BASE64Decoder' is not API处理方法

今天从svn更新代码之后,由于代码中使用了BASE64Encoder 
这里写图片描述 
更新之后报如下错误: 
Access restriction: The type ‘BASE64Decoder’ is not API (restriction on required library ‘D:javajdk1.7.0_45jrelib t.jar’)

解决其实很简单,把JRE System Library移除重新添加即可。 
方法:项目右键–>Properties–>Java Build Path,切换到libraries tab页,找到JRE System Library移除, 然后再点击Add Library–>JRE System Library添加即可。 
这里写图片描述 
这里写图片描述

 
 
原文地址:https://www.cnblogs.com/toSeeMyDream/p/8036167.html