码迷,mamicode.com
首页 > Web开发 > 详细

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

时间:2016-03-30 22:18:52      阅读:396      评论:0      收藏:0      [点我收藏+]

标签:

[异常信息]
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就可以编译通过了 

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

标签:

原文地址:http://www.cnblogs.com/liuyongcn/p/5338839.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!