Access restriction: The constructor SunJCE() is not accessible 錯誤

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')ide

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.jarui

 

解決辦法:修改編譯選項,步驟以下:Window -> Preferences -> Java -> Compiler -> Errors/Warnings -> Deprecated and restricted API -> Forbidden reference (access rules) -> Warnings或者Ignore便可。.net

相關文章
相關標籤/搜索