Access restriction: The constructor SunJCE() is not accessible 错误

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即可。


刚开接触开发,对工具的熟练掌握还是相当重要的。


你可能感兴趣的:(Access restriction: The constructor SunJCE() is not accessible 错误)