Install ImageJ in Ubuntu Linux

In general for Linux it’s better to install ImageJ directly instead of apt install imagej. 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="$HOME/ImageJ/ImageJ"
    
  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.