Edit page History

Developing ImageJ on the command line

    This article explains how to install and configure command line tools for use with ImageJ development.

    Install and configure command line tools

    ![ x32px](/media/Win.png "fig: x32px") **Windows** Install [Git](Git), [Maven](Maven), and Java SE using [Chocolatey](https://chocolatey.org/): choco install -y git maven jdk8 We also heartily recommend installing [Cygwin](https://www.cygwin.com/): choco install -y cyg-get ![ x32px](/media/Osx.png "fig: x32px") **OS X** Install [Git](Git) and [Maven](Maven) using [Homebrew](http://brew.sh/): brew install git maven bash-completion Download and install [Java SE](http://www.oracle.com/technetwork/java/javase/downloads/) from Oracle. ![ x32px](/media/Tux.png "fig: x32px") **Linux** sudo apt-get install default-jdk git maven

    Download the source

    git clone git://github.com/imagej/imagej

    See the Source Code page for further details.

    Build the source

    cd imagej

    Launch the program

    mvn -Pexec

    Launching alternative user interfaces

    Alternative UIs are experimental and still at “proof of concept” stage. The swing UI is semi-functional, but the other two (swing-mdi and awt) are largely non-functional, mentioned here solely for completeness.

    mvn -Dscijava.ui=swing -Pexec
    mvn -Dscijava.ui=swing-mdi -Pexec
    mvn -Dscijava.ui=awt -Pexec

    See also

    • Dotfiles if you want to twink out your shell