【Eclipse】 Eclipse 中JPEGEncodeParam 错误波浪线问题

[异常信息]
Description Resource Path Location Type
Access restriction: The method encode(BufferedImage, JPEGEncodeParam) from the type JPEGImageEncoder is not accessible due to restriction on required library C:\Program Files\Java\jre1.5.0_15\lib\rt.jar JRImageLoader.java /stariboss-tianjin_client/src/main/java/net/sf/jasperreports/engine/util line 181 Java Problem
 
 
[解决方法]
这个是eclipse的设置问题,它默认把这些受访问限制的API设成了ERROR,
只要把
Windows-Preferences-Java-Complicer-Errors/Warnings
里面的Deprecated and restricted API中的Forbidden references(access rules)选为Warning就可以编译通过了 
posted @ 2016-03-30 20:54  不及格的飞鱼  阅读(592)  评论(0编辑  收藏  举报