Eclipse中的Access restriction错误

在Eclipse中遇到了如下的错误:
引用
Access restriction: The method XXX from the type [A Class] is not accessible due to restriction on required library [A package].

用如下的方法就可以解决:
引用
Windows -> Preferences -> Java -> Compiler -> Errors/Warnings -> Deprecated and trstricted API -> Forbidden reference (access rules): -> change to warning

你可能感兴趣的:(java,eclipse,windows,Access)