[Bug 294753] Re: ImageJ chooses wrong java home

linuxed scorpiondb at scorpiondb.com
Mon Mar 23 15:07:25 UTC 2009


I can confirm this bug in ubuntu 8.10 64-bit.  On my system I had
manually installed the latest jre (1.6.0_14) from Sun into the following
directory.

/usr/lib/jvm/jre1.6.0_14

I then added a new java alternative and set it as the default jre using
the following.

sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jre1.6.0_14/bin/java" 1
sudo update-alternatives --set java /usr/lib/jvm/jre1.6.0_14/bin/java

To get imagej working with my jre I used a similar command to the one in
the patch above.  In my case I didn't require the third "dirname"
command.

$(dirname $(dirname $(readlink -e /usr/bin/java)))

I'm not sure whether it's better to use /usr/bin/java or
/etc/alternatives/java since they both point to the same location.

-- 
ImageJ chooses wrong java home
https://bugs.launchpad.net/bugs/294753
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list