Skip to content, Skip to search

Changes

Downloading and Building Fiji From Source

221 bytes added, 09:15, 9 July 2019
Add step about installing OpenJDK 8
{{FijiMenu}}The complete Fiji distribution of ImageJ consists of over a hundred individual components. Most of these components are ImageJ [[plugins, ]]; the rest are core libraries, [[scripts, the ImageJ launcher ]] and several other resources (such as the [[:File:Fiji-icon.png|Fiji logo ]] and the README).
In the past, Fiji used to be built from one monolithic source code repository, which became unmanageable over the time. These days, therefore, developers start from a fully-populated ''Fiji.app/'' directory and build only the parts they would like to change.
= Download Fiji =
The first step is the same for developers as it is for users: [[Downloads|Download]] Fiji, and unpack it (the . The Desktop is the recommended location). = Install Java = The next step is to install [https://adoptopenjdk.net/ OpenJDK 8]. You will need a JDK in order to develop Java code.
= Check out and build individual plugins/libraries =
Each individual component is maintained in its own repository in the [https://github.com/fiji/ ''fiji'' org on GitHub]. The name of the repository corresponding to a given ''.jar'' file is essentially identical with the file name, except that trailing underscores are stripped. Example: ''Stitching_.jar'' is maintained in the repository at https://github.com/fiji/Stitching, ''Time_Lapse.jar'' in the repository at https://github.com/fiji/Time_Lapse.
If in doubt about the location of the repository, just call ''{{bc | Plugins>| Debug>| System Information'' }} and find the section corresponding to the file in question.
Once the developer has identified which plugin or library she wants to modify or develop further, it is very easy to build and contribute by following [[How to contribute to an existing plugin or library|this tutorial]].
<source lang="bash">
$ mvn -Dimagej.app.directory=$HOME/Desktop/Fiji.app/-Ddelete.other.versions=true
[INFO] Scanning for projects...
[... lots and lots of interesting and useful information ...]
[[Category:Development]]
[[Category:Fiji]]
Bureaucrat, emailconfirmed, incoming, administrator, uploaders
12,110
edits