Bug#490621: libbatik-java: rasteriser doesn't recognise OpenJDK as a valid Java install

Vincent Fourmond fourmond at debian.org
Sat Jul 19 22:19:22 UTC 2008


  Hello,

Paul Wise wrote:
> Please modify the wrapper script to recognise the OpenJDK package now in
> sid. The directory to look for is /usr/lib/jvm/java-6-openjdk/. The
> package works fine with OpenJDK. Perhaps the wrapper script needs to use
> some common list of JVMs so that it works with new JVMs when they are
> added to Debian? Also, please move batik to main when you fix this issue

  I'm afraid it is slightly more complicated than it seems:

  * first, JPEG compression does not work with openjdk:

JAVA_HOME=/usr/lib/jvm/java-6-openjdk rasterizer -m image/jpeg FirstTry.svg
About to transcode 1 SVG file(s)

Converting FirstTry.svg to FirstTry.jpg ... ERROR: The JPEG quality has
not been specified. Use the default one: no compression
Exception in thread "main" java.lang.IncompatibleClassChangeError: Found
class com.sun.image.codec.jpeg.JPEGEncodeParam, but interface was expected
        at
org.apache.batik.transcoder.image.JPEGTranscoder.writeImage(Unknown Source)
        at
org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown Source)
        at
org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source)
        at
org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown Source)
        at
org.apache.batik.apps.rasterizer.SVGConverter.transcode(Unknown Source)
        at org.apache.batik.apps.rasterizer.SVGConverter.execute(Unknown
Source)
        at org.apache.batik.apps.rasterizer.Main.execute(Unknown Source)
        at org.apache.batik.apps.rasterizer.Main.main(Unknown Source)

  [ that is the only one, however, the rest seems to be fine ]

  * second, batik 1.6 refuses to build with anything else than sun's
java 1.4, for reasons which escape my poor understanding of the various
flavors of java runtimes, which alone is enough to keep it from main.

  So this won't be easy to fix... Batik 1.7 might help, but there are
other problems at the moment, including the fact that its interface has
changed a fair amount and that I fear for its reverse dependencies.

  Cheers,

	Vincent
-- 
Vincent Fourmond, Debian Developer
http://vince-debian.blogspot.com/

Au royaume des aveugles, il y a des borgnes à ne pas dépasser.
  -- Soeur Marie-Thérèse des Batignoles (Maëster)

Vincent, listening to A slow song - 09 (Joe Jackson)





More information about the pkg-java-maintainers mailing list