Comment 3 for bug 294753

Revision history for this message
linuxed (linuxed) wrote :

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.