Setup Netbeans

Netbeans should work right out of the box for Maven projects. However, when importing a Maven project for the first time, you may find that the project is unloadable. In this case, you must right-click on the unloadable project in the projects window on the left and choose an option that is something like "Resolve..." (I can't remember exactly what the option was at the moment.)

By resolving, Maven should download any required dependences for your project.

Setup the Fiji Development Environment in Eclipse

  • The guide on setting up the development environment is here:

  • Be sure to download Eclipse for Java Developers, not Eclipse for Java EE Developers.

  • Start plugin development by cloning the minimal IJ1 plugin and importing it into Eclipse: Import it as an existing Maven project.

  • The file from the minimal IJ1 plugin is very useful for instructions on setting up the environment.

  • To ensure that Maven is aware of the Fiji directory, select Run > Run Configurations... In the new window, double click Maven Build and to create a new configuration. The name should match your project. Add the following parameter: name: value: /home/douglass/src/

  • To build the plugin, select Run As... and select Maven build. You might have to specify the here if it wasn't set correctly in the step above. Even then, it didn't find the app directory and and instead wrote the .jar file to the target directory. The second time with some fuss I managed to get it working.

  • Don't use the jdk1.6.0_24 that comes with Fiji. Maven builds fail with an unsupported version error when I use it.

Maven and Plugin Dependencies

  • The ImageJ Maven repository is at

  • When adding dependencies, first search the repository for the name of your package. More information on finding Maven packages is here:

  • To add a Maven dependency, you add the package information between the <dependencies> tags inside your plugin's pom.xml file. These tags can be copied from the Maven repository website by clicking on the package name and inspecting the XML code in the frame containing the Maven and Artifact tabs. For example, the XML for the jhdf5 package that is used by the HDF5 Plugin is

  • When adding a package, you should also verify whether Maven is aware of the package's repository. For example, the jhdf5 package exists in the OME External repository, which was not found until I explictly added the imagej.public repository to my pom.xml file. See for more information.

Property '' unset; Skipping copy-jars

If you receive this warning during after compilation, follow the directions here.

Briefly, simply add the contents below to your ~/.m2/settings.xml, modifying the exists tag to point to your Fiji install directory.


Useful Links

Eclipse Setup (Didn't work)


When creating a new project in Eclipse, we can set the JRE to the same one used by FIJI. To do so, select Configure JREs inside the New Java Project window. Then, click the Search... button and look search inside

When I did this, it found the jdk1.6.0_24 JRE. Once selecting OK, return to the New Java Project window and select the radio button next to Use a project specific JRE:. Be sure to choose the jdk1.6.0_24 JRE that was just found.

Link Additional Source

In the window New Java Project > Java Settings I linked an additional source: the folder