<div dir="ltr">Hi Chris,<div><br></div><div><div>> The odd part is that I have Versitile_Wand.java in my java files,</div><div>> along with all my other java files, and it gets compiled into my</div><div>> target/classes, but it still doesn't get recognized.</div>
<div><br></div><div>The minimal-ij1-plugin's main method sets the plugins.dir prior to launching ImageJ (see footnote [1] below for an explanation why), using some special code:<br></div><div><a href="https://github.com/imagej/minimal-ij1-plugin/blob/06655b85992b1908d3567f6f177da2c7dad40420/src/main/java/Process_Pixels.java#L176">https://github.com/imagej/minimal-ij1-plugin/blob/06655b85992b1908d3567f6f177da2c7dad40420/src/main/java/Process_Pixels.java#L176</a><br>
</div><div><br></div><div>Your postcards plugin removed that code:</div><div><a href="https://github.com/ad1054/Postcards/blob/6cdff5e8d98e6f81ebb01919709b128400de0f1e/src/main/java/A_Postcard.java#L33">https://github.com/ad1054/Postcards/blob/6cdff5e8d98e6f81ebb01919709b128400de0f1e/src/main/java/A_Postcard.java#L33</a><br>
</div><div><br></div><div style>Add it back, and things may work better for you.</div><div><br></div><div>Regards,</div></div><div>Curtis</div><div><br></div><div>[1] For plugins to be recognized by ImageJ1, the "plugins.dir" system property must point to the folder containing your plugins. And there can only be one such folder. Or, if plugins.dir is unset, then ImageJ looks in the "plugins" subfolder of the current working directory by default. The main method of minimal-ij1-plugin sets plugins.dir for you, for convenience.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jul 12, 2013 at 3:01 PM, Chris <span dir="ltr"><<a href="mailto:christopher.coulon@gmail.com" target="_blank">christopher.coulon@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">> Hi Chris,<br>
><br>
> > I use the versatile wand plugin for part of my image analysis, and it<br>
> > should be available in the repository, right?<br>
><br>
> Nope, Versatile Wand is not part of Fiji, and not available from any Maven repository.<br>
><br>
> > So why doesn't my instance of ImageJ in NetBeans recognize it?<br>
><br>
> You can hack around it by including a copy of the Versatile Wand source with your plugin. But this ultimately causes problems because then you will be shipping your own version of it which might conflict with a different version installed by a user.<br>
><br>
> The proper solution is to deploy the Versatile Wand JAR file to a Maven remote repository you control. Or at minimum: install it to your local Maven repository cache. But both of these are rather involved for someone who is just getting started with Maven.<br>
><br>
> A much easier approach would be to simply develop your plugin using the Fiji Script Editor, which will automatically include all installed plugins on your classpath when you compile and run. But then you can't use NetBeans, of course.<br>
<br>
</div>The odd part is that I have Versitile_Wand.java in my java files, along with all my other java files, and it gets compiled into my target/classes, but it still doesn't get recognized. It always used to. I don't get it...<br>
</blockquote></div><br></div>