Install ImageJ in Ubuntu Linux

less than 1 minute read

How to install ImageJ for Linux without sudo–this method is better than apt install imagej, including for Ubuntu 18.04. This method also works for Raspberry Pi and other ARM systems.

  1. Install Java Runtime Environment (works with versions 8-11 at least, also works with openjdk-jre)
    apt install default-jre
    
  2. Download latest platform independent ImageJ
  3. unzip to ~/ImageJ recursively
    unzip ij*.zip -d ~
    
  4. add to ~/.bash_aliases
    alias imagej="(cd $HOME/ImageJ; ./run)"
    
  5. close and reopen your Terminal, then start ImageJ by:
    imagej
    

Create Imagej icon

Create a file ~/.local/share/applications/imagej.desktop with contents:

[Desktop Entry]
Type=Application
Exec=~/ImageJ/ImageJ
Name=ImageJ
Icon=~/ImageJ/images/icon.png
Categories=AudioVideo;Video;Science;

Notes

If you can’t open ImageJ via the menu/icon,

~/ImageJ/ImageJ

should open ImageJ properly.

Leave a Comment