Access restriction: The type 'SunJCE' is not API (restriction on required library 'C:\Program Files\Java\jdk1.8.0_45\jre\lib\ext\sunjce_provider.jar')

Access restriction: The constructor SunJCE() is not accessible due to restriction on required library D:\Program files\jdk1.6.0_07\jre\lib\ext\sunjce_provider.jar

Access restriction: The type SunJCE is not accessible due to restriction on required library D:\Program files\jdk1.6.0_07\jre\lib\ext\sunjce_provider.jar

 

解决办法:修改编译选项,步骤如下:Window -> Preferences -> Java -> Compiler -> Errors/Warnings -> Deprecated and restricted API -> Forbidden reference (access rules) -> Warnings或者Ignore即可。

 

相关文章:

  • 2021-11-24
  • 2022-12-23
  • 2021-12-03
  • 2022-01-03
  • 2022-12-23
  • 2021-09-25
  • 2021-09-28
猜你喜欢
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
  • 2022-01-06
  • 2022-12-23
  • 2021-09-10
  • 2021-08-18
相关资源
相似解决方案