【发布时间】:2010-11-18 16:31:04
【问题描述】:
我需要在 Eclipse 中从 Java 流中显示 TIFF(类型 4)图像。不支持 TIFFv4,所以我需要一个图像库。 Sun 的 JAI-ImageIO 有本机代码——我不能轻易地将它包装到插件中。我不能只从 lib\ext 目录中导入 jai-imageio.jar(等),因为 Eclipse 对类路径有自己的想法。
对 Eclipse 中可用的图像扩展/库有什么建议吗?
虽然我在同一个 Eclipse (Galileo) 上编译和运行了与标准 Java 程序相同的核心代码,但当我将其作为 Eclipse BIRT 扩展的一部分时(我修改了 RotatedLabel ReportItem 示例),它失败了。发生的情况是代码编译(我将 jar 添加到 jre\lib\ext 目录)并且在运行时失败并出现以下错误(在日志文件中):
严重:运行报告时发生错误。 java.lang.NoClassDefFoundError: javax/media/jai/PlanarImage 在 org.eclipse.birt.sample.reportitem.rotatedlabel.util.GraphicsUtil.createDocImage(GraphicsUtil.java:64) 在 > org.eclipse.birt.sample.reportitem.rotatedlabel.RotatedLabelPresentationImpl.onRowSets(RotatedLabelPresentationImpl.java:135) 在 org.eclipse.birt.report.engine.extension.ReportItemPresentationBase.onRowSets(ReportItemPresentationBase.java:218)
【问题讨论】:
标签: java eclipse image eclipse-plugin