IMAGEJ - Windows Installation
IMAGEJ - Windows Installation
Installation
The Windows version of ImageJ is available bundled with either Java 6 or Java 8, and
without Java. All versions include ImageJ.exe, a Windows program contributed by
George Silva that launches ImageJ (ij.jar). ImageJ.exe supports file-associations, drag
and drop, auto-configuration and command line operation. If the jre folder (the Java
runtime) is missing, ImageJ.exe detects the latest installed Java, generates the
configuration file (ImageJ.cfg) and sets the memory limit to 2/3 of installed memory or
640MB, whichever is lower. Refer to the ImageJ.exe README for more information.
If the "ImageJ" window is too small, set "GUI scale" in the Edit>Options>Appearance
dialog to a value greater then 1.0.
Memory
Use the Edit>Options>Memory command to make more than the default 640MB
available to ImageJ. Note that setting the "Maximum Memory" value to more than
about 75% of real RAM may result in poor perfomance due to virtual memory
"thrashing". The Edit>Options>Memory command modifies the third line in the
ImageJ.cfg file in the ImageJ folder, which must be writable. This is what ImageJ.cfg
looks like with "Maximum Memory" set to 1500MB:
.
jre\bin\javaw.exe
-Xmx1500m -cp ij.jar ij.ImageJ
You may get an error message that looks something like this:
Unable to update the file "ImageJ.cfg
C:\Program Files\ImageJ\ImageJ.cfg (Access denied)
This error is the result of not have write access to the folder containing ImageJ. You
need to either run ImageJ as an administrator, or to install it in a folder that you do
have write access to, for example the Documents folder.
Troubleshooting
Here are some common problems encountered when running ImageJ on Windows, and
their solutions:
https://imagej.nih.gov/ij/docs/install/windows.html 1/4
6/25/23, 2:39 PM Windows Installation
Update video card driver or try running the nVidia Fix plugin
The -Xmx1024m switch specifies that ImageJ will have available a maximum of
1024MB (1GB) of RAM.
-run command
https://imagej.nih.gov/ij/docs/install/windows.html 3/4
6/25/23, 2:39 PM Windows Installation
Runs an ImageJ menu command
Example: -run "About ImageJ..."
-ijpath path
Specifies the path to the directory containing the plugins directory
Example: -ijpath /Applications/ImageJ
-port
Specifies the port ImageJ uses to determine if another instance is running
Example 1: -port1 (use default port address + 1)
Example 2: -port2 (use default port address + 2)
Example 3: -port0 (don't check for another instance)
-debug
Runs ImageJ in debug mode
https://imagej.nih.gov/ij/docs/install/windows.html 4/4