[ImageJ-devel] error: Unrecognized command: "Versatile Wand"
Curtis Rueden
ctrueden at wisc.edu
Fri Jul 12 15:26:24 CDT 2013
Hi Chris,
> 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.
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:
https://github.com/imagej/minimal-ij1-plugin/blob/06655b85992b1908d3567f6f177da2c7dad40420/src/main/java/Process_Pixels.java#L176
Your postcards plugin removed that code:
https://github.com/ad1054/Postcards/blob/6cdff5e8d98e6f81ebb01919709b128400de0f1e/src/main/java/A_Postcard.java#L33
Add it back, and things may work better for you.
Regards,
Curtis
[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.
On Fri, Jul 12, 2013 at 3:01 PM, Chris <christopher.coulon at gmail.com> wrote:
> > Hi Chris,
> >
> > > I use the versatile wand plugin for part of my image analysis, and it
> > > should be available in the repository, right?
> >
> > Nope, Versatile Wand is not part of Fiji, and not available from any
> Maven repository.
> >
> > > So why doesn't my instance of ImageJ in NetBeans recognize it?
> >
> > 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.
> >
> > 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.
> >
> > 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.
>
> 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...
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://imagej.net/pipermail/imagej-devel/attachments/20130712/d4c327ee/attachment-0001.html>
More information about the ImageJ-devel
mailing list