在项目中用到这两个Jar包,但是程序报错。

Access restriction: The type BASE64Decoder is not accessible due to restriction on required library C:\Program 
files\java\jre7\lib\rt.jar 
Access restriction : The constructor BASE64Decoder() is not accessible due to restriction on required library C:\Program files\java\jre7\lib\rt.jar 

 

解决方法:

右键项目 -> Build Path -> Configure Build Path -> Libraries -> 选中 JRE System Library -> Remove

接着: Add Library -> JRE System Library   重新编译后,就没有问题了。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-26
  • 2021-07-11
  • 2021-09-12
  • 2022-12-23
猜你喜欢
  • 2021-04-12
  • 2021-12-17
  • 2021-05-21
  • 2021-12-12
  • 2022-12-23
  • 2021-06-27
相关资源
相似解决方案