错误解决:The type [X] is not accessible due to restriction on required library [Y].

来源:互联网 发布:传说 狐狸 知乎 编辑:程序博客网 时间:2024/05/21 21:36

Error Info: The type [X] is not accessible due to restriction on required library [Y]. 

It was actually a wrong Eclipse configuration of the Java compiler. What has to be done is to set the "Forbidden reference (access rules)" under the "Deprecated and restricted API" from "Error" to "Warning".


Read more: http://blog.js-development.com/2008/11/type-x-is-not-accessible-due-to.html#ixzz2Ye0tDK00