[ImageJ-devel] IJ2 Plugin Service
bnorthan at gmail.com
Mon Apr 28 17:50:56 CDT 2014
I am somewhat new to the ImageJ2 ecosystem. So somebody more experienced then I am will probably be able to give you a better answer.
That being said here are a couple of things that might help.
I've found to get the pluginservice to recognize changes to plugins in a jar (name changes, new plugins, etc.) I have to do a complete clean of the project.
If I need to run outside eclipse I use maven plugins from the command line to build things. I use the dependency plugin to compile all my dependencies in the same directory, then add that directory (target/dependency) to the class path.
I end up doing something like this.
To create an executable jar you might want to look at the maven assembly plugin.
On Sat, Apr 26, 2014 at 4:14 AM, Jay Warrick <warrick at wisc.edu> wrote:
> Sorry resending this from a registered email.
> Hi All,
> I use Eclipse and use the eclipse function to export my program as a runnable jar with referenced jars packaged in the application jar. I use the IJ plugin service to discover both IJ plugins of type Command.class as well as my own type called JEXPlugin.class. When I run the application from eclipse, the JEXPlugins are discovered by the ij.plugin() service. However, when I export the application as a runnable jar, ij.plugin()service returns all the Command.class plugins but 0 plugins of type JEXPlugin.class using the call "ij.plugin().getPluginsOfType(JEXPlugin.class);"
> Any idea why or how to fix it?
> ImageJ-devel mailing list
> ImageJ-devel at imagej.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ImageJ-devel