<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><span></span></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><span></span></div><div><div dir="ltr"><div>Hi Jay<br><br></div><div>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.</div><div><br></div><div>That being said here are a couple of things that might help. <br>
</div><div><br></div><div> 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. </div><div><br></div><div>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.</div><div><br></div><div>I end up doing something like this.</div><div><br></div><div>mvn clean<br></div><div>mvn<br></div><div>mvn dependency:copy-dependencies.<br>
</div><div><br></div><div>To create an executable jar you might want to look at the maven assembly plugin.</div><div><br>Brian<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Apr 26, 2014 at 4:14 AM, 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">Sorry resending this from a registered email.<br>
<br>
Hi All,<br>
<br>
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);"<br>
<br>
Any idea why or how to fix it?<br>
<br>
Thanks,<br>
<br>
Jay<br>
<br>
_______________________________________________<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>
</blockquote></div><br></div>
</div></div></body></html>