在搭建项目环境时出现了以下编译错误:
Access restriction: The constructor SunJCE() is not accessible due to restriction on required library J:\jdk\jre\lib\ext\sunjce_provider.jar
访问限制:由于J:\jdk\jre\lib\ext\sunjce_provider.jar库的限制,SunJCE() 构造函数不可访问。
在网上搜了一下,解决办法是修改编译选项,方法如下:Window -> Preferences -> Java -> Compiler -> Errors/Warnings -> Deprecated and restricted API -> Forbidden reference (access rules) -> Warnings或者Ignore即可。
Access restriction: The constructor SunJCE() is not accessible
最新推荐文章于 2022-07-06 09:54:10 发布
本文介绍了在项目环境中遇到SunJCE()构造函数访问受限的问题及解决方案。通过调整编译器设置,将错误级别从禁止访问改为警告或忽略,从而解决了因JDK外部库sunjce_provider.jar引起的构建错误。
1万+

被折叠的 条评论
为什么被折叠?



