Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

4 views
Skip to first unread message

Paul Wise

unread,
Jul 13, 2008, 2:00:15 AM7/13/08
to
Package: libbatik-java
Version: 1.6-4
Severity: important

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

$ sh -ex /usr/bin/rasterizer cover.svg ; echo $?
+ . /usr/lib/java/wrappers.sh
++ '[' '' ']'
++ DESTDIR=
++ '[' '' ']'
++ JAVA_CLASSPATH=
+ find_java_runtime sun
+ sun_java='/usr/lib/jvm/java-6-sun /usr/lib/jvm/java-1.5.0-sun /usr/lib/j2sdk1.4-sun '
+ gcj2='/usr/lib/jvm/java-*-gcj-4.* '
+ icedtea=/usr/lib/jvm/java-7-icedtea
+ '[' '' ']'
+ '[' -z '' ']'
+ case $1 in
+ DIRS='/usr/lib/jvm/java-6-sun /usr/lib/jvm/java-1.5.0-sun /usr/lib/j2sdk1.4-sun '
+ for dir in '$DIRS'
+ '[' -x /usr/lib/jvm/java-6-sun/bin/java ']'
+ for dir in '$DIRS'
+ '[' -x /usr/lib/jvm/java-1.5.0-sun/bin/java ']'
+ for dir in '$DIRS'
+ '[' -x /usr/lib/j2sdk1.4-sun/bin/java ']'
+ '[' '' ']'
+ exit 1
1


-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.25-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libbatik-java depends on:
ii java-gcj-compat [java2-runtim 1.0.78-2 Java runtime environment using GIJ
ii libavalon-framework-java 4.2.0-4 Common framework for Java server a
ii libbsf-java 1:2.4.0-2 Bean Scripting Framework to suppor
ii libcommons-io-java 1.4-1 Common useful IO related classes
ii libcommons-logging-java 1.1.1-1 commmon wrapper interface for seve
ii libxalan2-java 2.7.1-2 XSL Transformations (XSLT) process
ii openjdk-6-jre [java2-runtime] 6b10dfsg-1 OpenJDK Java runtime

--
bye,
pabs

http://wiki.debian.org/PaulWise

signature.asc

Vincent Fourmond

unread,
Jul 19, 2008, 6:30:19 PM7/19/08
to

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)

--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

0 new messages