Hi, I was worried that this might be a bug that only affected ubuntu so I checked if it would run in a squeeze chroot and I it also fails with the NullPointerException. The other thing is it is probably better for the binary to depend on default-jre instead of openjdk-6-jre as it has not been ported to all debian architectures. However you might still have a runtime error for the architectures that use gcj-jre as the default: [avr32, hppa, hurd-i386, kfreebsd-amd64, kfreebsd-i386, m68k].
On Fri, Nov 27, 2009 at 1:22 AM, Manny Vindiola <man...@gmail.com> wrote: > Package: imagej > Version: 1.43g-1 > Severity: important > Tags: patch > > When java-gcj-compat is the only java version installed on the system the > application will not run. It fails with message /usr/bin/imagej: line 420: > //bin/java: No such file or directory. This is because of the JAVA_HOME hack > introduced inversion 1.43b-1. > > When the correct path is specified it still will not run. It crashes with > error: > (lucid32)ma...@laptop:~/dev/submitted/imagej$ imagej > Open other images in this ImageJ panel as follows: > imagej -p 1 <image1> [<image2> ... <imageN>] > > Exception in thread "main" java.lang.NullPointerException > at java.awt.Component.setDropTarget(libgcj.so.10) > at ij.plugin.DragAndDrop.run(DragAndDrop.java:28) > at ij.IJ.runPlugIn(IJ.java:152) > at ij.IJ.runPlugIn(IJ.java:135) > at ij.ImageJ.<init>(ImageJ.java:184) > at ij.ImageJ.main(ImageJ.java:554) > > These errors can be corrected by depending on openjdk-6-jre and reverting the > JAVA_HOME hack to what it used to be. I have attached a patch to correct > these problems. > > > -- System Information: > Debian Release: squeeze/sid > APT prefers karmic-updates > APT policy: (500, 'karmic-updates'), (500, 'karmic-security'), (500, > 'karmic-proposed'), (500, 'karmic-backports'), (500, 'karmic') > Architecture: amd64 (x86_64) > > Kernel: Linux 2.6.31-15-generic (SMP w/2 CPU cores) > Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) > Shell: /bin/sh linked to /bin/dash > > Versions of packages imagej depends on: > ii gcj-4.4-jre [java2-r 4.4.1-5ubuntu2 Java runtime environment using > GIJ > ii gcj-jre [java2-runti 4:4.4.1-1ubuntu2 Java runtime environment using > GIJ > ii openjdk-6-jre [java2 6b16-1.6.1-3ubuntu1 OpenJDK Java runtime, using > Hotspo > ii sun-java6-jre [java2 6-15-1 Sun Java(TM) Runtime Environment > ( > > imagej recommends no packages. > > Versions of packages imagej suggests: > ii gcj-4.4-jre-headless [j 4.4.1-5ubuntu2 Java runtime environment using > GIJ > ii gcj-jre-headless [java- 4:4.4.1-1ubuntu2 Java runtime environment using > GIJ > ii gij-4.3 [java-virtual-m 4.3.4-4ubuntu1 The GNU Java bytecode interpreter > ii sun-java6-jre [java-vir 6-15-1 Sun Java(TM) Runtime Environment > ( > > -- no debconf information > -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org