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

Andreas Tille andreas at an3as.eu
Wed Mar 12 12:55:15 UTC 2014


Hi Joachim,
On Wed, Mar 12, 2014 at 09:17:17AM +0100, JR Coding wrote:
> 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.

Sure, but if gcj is default and set as /usr/bin/javac ?

I'll go on uploading

    JAVA_HOME=$(/usr/sbin/update-java-alternatives -l | grep openjdk | sort | tail -1 | cut -d' ' -f 3)
 
which simply excludes gcj from the alternatives.

Thanks for the hint anyway

    Andreas.

-- 
http://fam-tille.de



More information about the Debian-med-packaging mailing list