eclipse里遇到以下问题
工程引用了 import com.sun.org.apache.bcel.internal.ExceptionConstants;
提示错误: Access restriction: The type ExceptionConstants is not accessible due to restriction on required library /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar
解决方案:
Prefrence -- Java -- Compiler -- Error/Warnings -- Deprecated and restricted API
修改Forbidden reference(access rules) 的选项,改成warning或ignore,即可解决编译问题
参考:
http://www.mkyong.com/java/access-restriction-the-type-base64encoder-is-not-accessible-due-to-restriction/
工程引用了 import com.sun.org.apache.bcel.internal.ExceptionConstants;
提示错误: Access restriction: The type ExceptionConstants is not accessible due to restriction on required library /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar
解决方案:
Prefrence -- Java -- Compiler -- Error/Warnings -- Deprecated and restricted API
修改Forbidden reference(access rules) 的选项,改成warning或ignore,即可解决编译问题
参考:
http://www.mkyong.com/java/access-restriction-the-type-base64encoder-is-not-accessible-due-to-restriction/
本文详细介绍了如何在Eclipse中解决导入受限API导致的编译错误,通过修改编译器设置,将禁止访问的规则调整为警告或忽略,从而顺利解决工程中的编译问题。
558

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



