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

项目场景:

eclipse报Access restriction: The type ‘BASE64Decoder’ is not API


问题描述:

就是有找了这个jdk下面是存在这个rt.jar包,,但是就是引用不到,然后看晚上网上的方法就是要移除jdk然后重新引入eclipse报Access restriction: The type ‘BASE64Decoder‘ is not API处理方法

例如下面的网站:
https://blog.csdn.net/gnail_oug/article/details/53636428
eclipse报Access restriction: The type ‘BASE64Decoder‘ is not API处理方法
但是我这边试了一下还是没用,于是发现了问题所在


原因分析:

这里可能就是发现我jdk包的顺序的问题,因为公司的项目有很多,就有很多的jar包,而且主项目要引入其他的项目,顺序就不对了


解决方案:

总的解决方法就是下面的jdk的顺序,之前我放在最下面,然后我直接将这个放最上面,就不报错了
eclipse报Access restriction: The type ‘BASE64Decoder‘ is not API处理方法