It's pretty obvious it's no Sun JVM. I think the question should be:
which Batik version are you running? That's because the 1.7beta1 does
have special image writer implementations which uses ImageIO (since Java
1.4) instead of Sun's JPEG codec. But maybe the mechanism for choosing
the right ImageWriter doesn't work properly, yet. If you're on Batik 1.6,
please check if it works with Batik 1.7beta1. If it doesn't we'll have
to fix a bug.

Jeremias Maerki



On 27.11.2007 01:11:22 Cameron McCormack wrote:
> Hi.
> 
> juuser:
> > Now when I use batik-rasterizer, I CAN convert svg to png.
> > BUT when I try to convert svg to jpg, I get nasty error:
> > 
> > Converting file.svg to /home/raf/file.jpg ... Exception in thread "main"
> > java.lang.NoClassDefFoundError: com.sun.image.codec.jpeg.JPEGCodec
> …
> > What could cause this error ? 
> 
> The transcoder is trying to use Sun’s JPEG codec classes, which are not
> present.  What JRE are you running Batik on?
> 
> -- 
> Cameron McCormack, http://mcc.id.au/
>       xmpp:[EMAIL PROTECTED]  ▪  ICQ 26955922  ▪  MSN [EMAIL PROTECTED]


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

Reply via email to