Example for a simple IJ2 / Fiji Plugin

Wonder how to write a IJ2 / Fiji Plugin (Command) that can run nicely from within Eclipse and Fiji or ImageJ2?

There are several answer Google gives you, and most of them go the old IJ (1) way. If you want to use ops or any of the IJ2 services you will appreciate this:


Or this one (which also uses ops to work on images):


Using maven to deploy directly to a Fiji installation


The command for this is:

mvn -Dimagej.app.directory=/Applications/Fiji.app/ -Ddelete.other.versions=true clean install


mvn -Dimagej.app.directory=/Applications/Fiji.app/ -Ddelete.other.versions=true -Denforcer.skip=true clean install


Change the Fiji temp Folder (by passing JVM arguments)


This page tells you how you can pass on JVM arguments to Fiji upon start: http://fiji.sc/Java_Options


$ fiji -Djava.io.tmpdir=~/tmp -- &


Find JAR Containing Specific Class


