Re: Eclipse woes
Posted by
Dimiter Prodanov-3 on
Dec 03, 2015; 8:00am
URL: http://imagej.273.s1.nabble.com/Eclipse-woes-tp5015004p5015113.html
Hi Gabriel,
I basically use the same strategy as Wilhelm.
I typically code a main method so that I could start ImageJ from Eclipse by
defining a launcher
public static void main(String[] args) {
try {
File f=new File(args[0]);
if (f.exists() && f.isDirectory() ) {
System.setProperty("plugins.dir", args[0]);
new ImageJ();
} else {
throw new IllegalArgumentException();
}
}
catch (Exception ex) {
IJ.log("plugins.dir misspecified\n");
ex.printStackTrace();
}
}
I run 2 copies of ImageJ - a development copy and a testing copy.
best regards,
Dimiter
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html