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
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即可。
本文提供了解决在Java编译过程中遇到的受限API引用问题的方法,包括修改编译选项来忽略禁止引用的规则。通过调整窗口设置,用户可以避免因受限库文件而导致的访问限制错误。
1万+

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



