[异常信息]
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 FilesJavajre1.5.0_15lib
t.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就可以编译通过了
Windows-Preferences-Java-Complicer-Errors/Warnings
里面的Deprecated and restricted API中的Forbidden references(access rules)选为Warning就可以编译通过了