Access restriction: The type XXX is not accessible due to restriction on required library XXX(转载)

- Access restriction: The type IInboundMessageNotification is not accessible due to restriction on required library C:\Program Files\Java\jdk\jre\lib\ext
  \jdsmsserver-3.4.jar

google了一下 下面是解决方法

Eclipse 默认把这些受访问限制的API设成了ERROR。只要把Windows-Preferences-Java-Complicer- Errors/Warnings里面的Deprecated and restricted API中的Forbidden references(access rules)选为Warning就可以编译通过。

转载 :

http://blog.csdn.net/hexin373/article/details/7175325

 

原文地址:https://www.cnblogs.com/wuhenke/p/2715568.html