您的位置:首页 > 产品设计 > UI/UE

Access restriction: The type 'XXX' is not API (restriction on required library 'C:\Progra

2016-11-25 10:45 465 查看

1.问题

Eclipse 编译错误: Access restriction: The type 'xxx' is not API (restriction on required library 'C:\Progra。。。

我引入一个    import sun.misc.ProxyGenerator;  但是Eclispe编译报错,但是java的jre确实有该包。

2.解决方法

  
右击项目> Build Path >Config Build Path > Libraries >把当前的jre   remove掉, 然后再add Libary 把它从新添加进来。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐