今天在做JAVA网络编程实验,在搭建项目环境时出现了以下编译错误: Access restriction: The constructor SunJCE() is not accessible due to restriction on required library E:/JDK/JDK1.6.0_03/jdk1.6.0_03/jre/lib/ext/sunjce_provider.jar 翻译过来大概是:由于必须的库限限制访问,SunJCE() 构造函数不可访问。

       在网上搜了一下,解决办法是修改编译选项,方法如下:Window -> Preferences -> Java -> Compiler -> Errors/Warnings -> Deprecated and restricted API -> Forbidden reference (access rules) -> Warnings,或者在项目上修改编译选项。

相关文章:

  • 2021-12-03
  • 2021-08-18
  • 2022-01-06
  • 2021-12-18
  • 2021-12-22
  • 2022-12-23
  • 2022-03-03
  • 2021-08-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案