Access restriction: The type 'SunJCE' is not API (restriction on required library 'C:Program FilesJavajdk1.8.0_45jrelibextsunjce_provider.jar')
Access restriction: The constructor SunJCE() is not accessible due to restriction on required library D:Program filesjdk1.6.0_07jrelibextsunjce_provider.jar
Access restriction: The type SunJCE is not accessible due to restriction on required library D:Program filesjdk1.6.0_07jrelibextsunjce_provider.jar
解决办法:修改编译选项,步骤如下:Window -> Preferences -> Java -> Compiler -> Errors/Warnings -> Deprecated and restricted API -> Forbidden reference (access rules) -> Warnings或者Ignore即可。