This article explains how to install and configure command line tools for use with ImageJ development.
Install and configure command line tools
Download the source
git clone git://github.com/imagej/imagej.git
See the Source code page for further details.
Build the source
cd imagej
mvn
Launch the program
cd ui/app
mvn exec:exec 