[ImageJ-devel] loading imageJ instance with full Services

Johannes Schindelin Johannes.Schindelin at gmx.de
Mon Jun 24 10:22:04 CDT 2013


Hi Mohamed,

On Mon, 24 Jun 2013, Mohamed Tleis wrote:

> ImageJ ij = new ImageJ.Main.launch();

As I said, this is not the correct way to launch ImageJ.

First of all, ImageJ.Main.launch is not a class, therefore you cannot
instantiate it with "new". Second, the correct call to obtain an ImageJ
context is:

	final ImageJ ij = new ImageJ();

Please have a look at the examples Curtis put so much TLC and effort into:

	https://github.com/imagej/imagej-tutorials/

Ciao,
Johannes



More information about the ImageJ-devel mailing list