Jubal Kessler wrote:

Greetings,

Hi,


I'm attemping to display a PNG file, but I'm getting a "No
ImagePreloader found" error, and spending some time researching online
didn't help:

++ exec /usr/java/bin/java -classpath
/work/ui/pkgs/fop/Linux/lib/xmlgraphics-commons-1.3.jar:/work/ui/pkgs/fop/Linux/lib/xml-apis-ext.jar:/work/ui/pkgs/fop/Linux/lib/xml-apis-1.3.02.jar:/work/ui/pkgs/fop/Linux/lib/xercesImpl-2.7.1.jar:/work/ui/pkgs/fop/Linux/lib/xalan-2.7.0.jar:/work/ui/pkgs/fop/Linux/lib/serializer-2.7.0.jar:/work/ui/pkgs/fop/Linux/lib/mlibwrapper_jai.jar:/work/ui/pkgs/fop/Linux/lib/jai_core.jar:/work/ui/pkgs/fop/Linux/lib/jai_codec.jar:/work/ui/pkgs/fop/Linux/lib/commons-logging-1.0.4.jar:/work/ui/pkgs/fop/Linux/lib/commons-io-1.3.1.jar:/work/ui/pkgs/fop/Linux/lib/batik-all-1.7.jar:/work/ui/pkgs/fop/Linux/lib/avalon-framework-4.2.0.jar:/work/ui/pkgs/fop/Linux/build/fop.jar:/work/ui/pkgs/fop/Linux/build/fop-sandbox.jar:/work/ui/pkgs/fop/Linux/build/fop-hyph.jar:
org.apache.fop.cli.Main -xml MessageVolumeByCount-report.xml -xsl
report-pdf.xsl -pdf MessageVolumeByCount-report.pdf

Image IO library is missing from your classpath. The name of the JAR you need is jai_imageio.jar.

<snip/>

I also had the same error from FOP when trying to load a simple JPG
version of the same file, saved from GIMP.

I am a little frustrated because there is no documentation on the Apache
FOP site for helping with troubleshooting this (I did look at
http://xmlgraphics.apache.org/fop/0.94/graphics.html and downloaded JAI
1.1.3, and it appears in the classpath (see above)). I do understand
that image formats are crazily complex, but there's no simple how-to
document (that I could find) to get basic image rendering set up in a
foolproof manner...

The JAI that you downloaded is an older library and you need Image IO version.

Regards,

Chris



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to