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

The type JPEGImageEncoder is not accessible due to restriction on required library C:\Java\jre1.6.

2011-08-09 16:54 597 查看
eclipse遇到报错:

The type JPEGImageEncoder is not accessible due to restriction on required library C:\Java\jre1.6.0_07\lib\rt.jar

google后发现用以下方式解决:

这个事eclipse的设置问题,它默认把这些受访问限制的API设成了ERROR,你只要把

Windows-Preferences-Java-Complicer-Errors/Warnings

里面的Deprecated and restricted API中的Forbidden references(access rules)选为Warning就可以编译通过了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐