Home
Analytics
Use JAI ImageIO in new ReportItem extension?
sventech
I'm trying to use Sun's JAI / ImageIO library to convert some TIFF images to PNG so they will display. Does anyone know how to add jar files so they are accessible to Eclipse BIRT? I'm using the latest Eclipse and BIRT 2.5.
Although I've got the same basic code compiling and running on the same Eclipse as a standard Java program, when I make it part of an extension (I modified the RotatedLabel ReportItem example), it fails. What happens is that the code compiles (I added the jars to the jrelibext directory) and it fails at runtime with the following error (in the log file):
SEVERE: Error happened while running the report.
java.lang.NoClassDefFoundError: javax/media/jai/PlanarImage
at org.eclipse.birt.sample.reportitem.rotatedlabel.util.GraphicsUtil.createDocImage(GraphicsUtil.java:64)
at org.eclipse.birt.sample.reportitem.rotatedlabel.RotatedLabelPresentationImpl.onRowSets(RotatedLabelPresentationImpl.java:135)
at org.eclipse.birt.report.engine.extension.ReportItemPresentationBase.onRowSets(ReportItemPresentationBase.java:218)
Find more posts tagged with
Comments
There are no comments yet