imagej / imagej-launcher

The ImageJ native launcher
https://imagej.net/learn/launcher
BSD 2-Clause "Simplified" License
21 stars 23 forks source link

ImageJ.c: run ij.ImageJ when not patching IJ1 #7

Closed ctrueden closed 10 years ago

ctrueden commented 10 years ago

When using the --dont-patch-ij1 flag, Fiji and ImageJ2 modes cannot work. So, in the absence of any explicitly specified main class, let's run ij.ImageJ by default when that flag is given.

dscho commented 10 years ago

Does this also work when --main-class is specified? Or when a .bsh script is the first parameter? The original intention of --dont-patch-ij1 was to be able to run scripts with unpatched ImageJ 1.x versions...

ctrueden commented 10 years ago

Yes, when --main-class is specified then the specified main class is used. My patch only sets the main class when none was set explicitly.

It also works with a .bsh as the first parameter in my quick test just now.

dscho commented 10 years ago

Thanks!