<div dir="ltr">Dear Johannes and Jay,<br><br>thank you both for the reply, links and the latex documentation. <br>Yes indeed I did had instantiated ImageJ multiple times..<br><br>Now I just tried using one of the tutorial examples: image-tutorials/add-two-datasets<div>
<br><div>So I created a new maven project, added the pom file from this link:<br><a href="https://github.com/imagej/imagej-tutorials/blob/master/add-two-datasets/pom.xml">https://github.com/imagej/imagej-tutorials/blob/master/add-two-datasets/pom.xml</a></div>
<div>and the java file from:</div><div><a href="https://github.com/imagej/imagej-tutorials/blob/master/intro-to-imagej-api/src/main/java/IntroToImageJAPI.java">https://github.com/imagej/imagej-tutorials/blob/master/intro-to-imagej-api/src/main/java/IntroToImageJAPI.java</a><br>
<br>and tried to run the application, but I got the following error:<br>java.lang.NoClassDefFoundError: net/imagej/updater/UploaderService<br><br>Is there anything I'm missing?</div><div><br></div><div>Thank you!</div>
<div><br></div><div>Greetings,</div><div>Vera</div><div><br><div><br></div><div><br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Aug 6, 2014 at 12:41 PM, Jay Warrick <span dir="ltr"><<a href="mailto:warrick@wisc.edu" target="_blank">warrick@wisc.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
<br>
I also wrote this help document for just this purpose. I have not received feedback from the ImageJ2 dev crew on it yet, but this is what I learned and it really helped me. Also, I wrote this before the OPS stuff was added so likely, as I learn this interface too, it should be added as well. Feel free to add to the document as it is a work in progress. It is written using an online collaborative latex editor. But if you don't know latex and want to add a section for a topic I missed, just look at the other sections and try to copy what I have done or just add plain text and I'll format for you later.<br>

<br>
Here is the link.<br>
<br>
<a href="https://www.writelatex.com/756020pphsxc" target="_blank">https://www.writelatex.com/756020pphsxc</a><br>
<br>
Cheers,<br>
<br>
Jay<br>
<div><div class="h5"><br>
On Aug 6, 2014, at 4:51 AM, Johannes Schindelin <<a href="mailto:Johannes.Schindelin@gmx.de">Johannes.Schindelin@gmx.de</a>> wrote:<br>
<br>
> Hi Vera,<br>
><br>
> On Wed, 6 Aug 2014, Johannes Schindelin wrote:<br>
><br>
>> Due to limitations in ImageJ 1.x' design, the legacy service --<br>
>> responsible for executing any function in ImageJ 1.x -- can be<br>
>> instantiated only once per class loader. That means that you have to<br>
>> *dispose* of a SciJava context offering a legacy service *before* you can<br>
>> instantiate a new context.<br>
><br>
> I completely forgot to mention that the best practice is to instantiate<br>
> the ImageJ object *once* and then reuse that instance, rather than<br>
> instantiating a new ImageJ object everytime you want to call ImageJ<br>
> functionality.<br>
><br>
> Ciao,<br>
> Johannes<br>
><br>
</div></div>> _______________________________________________<br>
> ImageJ-devel mailing list<br>
> <a href="mailto:ImageJ-devel@imagej.net">ImageJ-devel@imagej.net</a><br>
> <a href="http://imagej.net/mailman/listinfo/imagej-devel" target="_blank">http://imagej.net/mailman/listinfo/imagej-devel</a><br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>----------------------------------------------------------------------------------------------------------------<br>----------------------------------------------------------------------------------------------------------------<br>
Artificial Intelligence Program at KULeuven, Belgium<br>grad.ing at The Faculty of Electrical Engineering and Information Technologies<br>in Skopje,Macedonia<br>tel: +32 483 439 906<br>skype:vercence_zvercence<br>----------------------------------------------------------------------------------------------------------------<br>
----------------------------------------------------------------------------------------------------------------
</div>