[Debian-med-packaging] Bug#740439: imagej: fails to start: No JVM found to run ImageJ

JR Coding jr.coding at googlemail.com
Wed Mar 12 08:17:17 UTC 2014


Hello,

I had the same problem Florian mentioned and removing gcj-4.x-jre helped.

A different approach was modifying the script /usr/bin/imagej
like this:

[...snip...]
##################### DEFINE JAVA_HOME  #####################

if [ -z "$JAVA_HOME" ] ; then
    # This does not work see #505315
#    JAVA_HOME=$(/usr/sbin/update-java-alternatives -l | sort | tail -1 | cut -d' ' -f 3)
    # Reverted to old version - see #558222 (Andreas Tille)
    # JAVA_HOME=$(dirname $(dirname $(dirname $(readlink /etc/alternatives/java))))

    # to prevent problem mentioned in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=740439
    # one could use this to define JAVA_HOME
    #
    JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:/bin/javac::")
fi

##################### CREATE THE RIGHT ENVIRONMENT #####################
[...snip...]

This only if one needs gcj-4.x-jre installed while using imagej.

Cheers, Joachim



More information about the Debian-med-packaging mailing list