Linux Icon    Linux x86 Installation

To install and run ImageJ, download the Linux x86 .tar.gz file, extract the ImageJ directory, change to the ImageJ directory, and execute the 'run' script.

Here is an example:

gunzip ij123-x86.tar.gz
tar xvf ij123-x86.tar
cd ImageJ
./run
This installation includes IBM's Java Runtime Environment 1.1.8 and the complete ImageJ source code (in the src.zip).

Kernel 2.4 Problem
Note that IBM's JRE 1.1.8 does not work with the new floating stack feature of the i686 version of glibc in Red Hat 7.1. To work around this problem, force glibc to use the deprecated stack model by setting the following environment variable:

LD_ASSUME_KERNEL=2.2.5
export LD_ASSUME_KERNEL
Other Linux distribution that use the 2.4 kernel are also likely to have this problem.

Memory
To make more than 80MB of memory available to ImageJ, edit the 'run' script. For example, changing the script to

./jre/bin/jre -mx256m -cp ij.jar:tools.jar ij.ImageJ
makes 256MB available to ImageJ.

Sharing ImageJ and the JRE
With ImageJ 1.24n and newer, you can specify the location of the plugins directory from the command line using the -D option to set the "plugins.dir" property. This allows ImageJ to be in a common location (e.g., /usr/local/ImageJ) and run from the users home directory using a shell script. This example script runs ImageJ from /usr/local/ImageJ using a plugins directory at /home/wayne/ImageJ/plugins.

cd /usr/local/ImageJ
./jre/bin/jre -mx80m -cp ij.jar:tools.jar -Dplugins.dir=/home/wayne ij.ImageJ
Upgrades
To upgrade to the latest version of ImageJ, replace the ij.jar JAR file in the ImageJ directory with a newer one from http://rsb.info.nih.gov/ij/upgrade/.

| Install | Download | Home |