Login  Register

Re: Second-level Plug-in Menus

Posted by gankaku on Jan 12, 2015; 7:39pm
URL: http://imagej.273.s1.nabble.com/Second-level-Plug-in-Menus-tp5011191p5011195.html

Hi Richard,

I assume you are not working with a IDE like Eclipse. So here's a manual
way how to achieve what you want.
You can try to put your .class and your .java file together with a
"plugins.config" file into a final .jar-file:

The structure of your plugins.config file (a simple text file, you can
write this in any editor) would be:

Plugins>moreStuff, "Red And Blue", Red_And_Blue

You need to save the file with the exact name "plugins" and the extension
".config" next to your respective class and java files.

Then you go to the console, go to the directory where those three files are
in (this does not need to be the plugins folder) and type e.g.:

jar cf Red_And_Blue.jar *.class *.java *.config (This packs all .class and
.java file in this folder in the jar file, so if you have more than only
the one plugin in this folder you should specifically specify which files
to pack)

This will produce you an executable jar file which you can then put in the
plugins folder. In this case there is no need for a physical subdirectory
because your plugins.config file defines the menu structure in ImageJ.

In my case this works fine. If the cracks here around have a better, more
sophisticated way to do this I would also like to learn more ;-)

cheers,
Jan



--

CEO: Dr. rer. nat. Jan Brocher
phone:  +49 (0)6234 917 03 39
mobile: +49 (0)176 705 746 81
e-mail: [hidden email]
info: [hidden email]
inquiries: [hidden email]
web: www.biovoxxel.de

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html