码迷,mamicode.com
首页 > 数据库 > 详细

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

时间:2016-07-08 13:22:59      阅读:330      评论:0      收藏:0      [点我收藏+]

标签:

Access restriction: The type ‘SunJCE‘ is not API (restriction on required library ‘C:\Program Files\Java\jdk1.8.0_45\jre\lib\ext\sunjce_provider.jar‘)

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

 

解决办法:修改编译选项,步骤如下:Window -> Preferences -> Java -> Compiler -> Errors/Warnings -> Deprecated and restricted API -> Forbidden reference (access rules) -> Warnings或者Ignore即可。

 

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

标签:

原文地址:http://www.cnblogs.com/fiyxiang/p/5652836.html

(0)
(1)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!