Comment 2 for bug 471127

Revision history for this message
linuxed (linuxed) wrote :

If anyone's looking for a temporary fix to get imagej working in Karmic you can use the following.

sudo gedit /usr/bin/imagej

Copy and paste the following on the 2nd line. Save the file when finished.

# run the program and exit
if [ ! -e "$HOME/.imagej/ij.jar" ] ; then
    if [ ! -e "$HOME/.imagej" ] ; then
        mkdir $HOME/.imagej
        cp -P -R /usr/share/imagej/* $HOME/.imagej
    fi
    cp -P /usr/share/java/ij.jar $HOME/.imagej
fi
java -jar $HOME/.imagej/ij.jar
exit 0