http://imagej.273.s1.nabble.com/Second-level-Plug-in-Menus-tp5011191p5011201.html
> On Jan 12, 2015, at 1:57 PM, Richard VanMetter <
[hidden email]> wrote:
>
> Putting plug-ins in a second level menu is a useful feature that seems to work sometimes and not others. By not working, I mean that ImageJ simply ignores the second-level folder in \plugins or some of the plugins contained in that folder. I have investigated, trying to find the trick to making it work, but without success. Perhaps someone can clarify it for me.
>
> Here's and example. Take the plugins that come shipped with ImageJ. There is a folder Examples that contains:
>
> Directory of c:\Program Files (x86)\ImageJ\plugins\Examples
>
> 01/12/2015 01:38 PM <DIR> .
> 01/12/2015 01:38 PM <DIR> ..
> 10/04/2012 09:06 AM <DIR> -Macros
> 01/12/2015 01:34 PM <DIR> -moreStuff
> 10/04/2012 09:06 AM <DIR> -Scripts
> 10/29/2011 07:53 PM 716 Image_Inverter.class
> 10/29/2011 08:06 PM 1,387 Image_Inverter.java
> 10/29/2011 07:53 PM 3,400 IPDemoRunner.class
> 10/29/2011 07:53 PM 2,561 IP_Demo.class
> 10/29/2011 08:06 PM 5,059 IP_Demo.java
> 10/29/2011 07:53 PM 3,217 Plasma2_.class
> 10/29/2011 08:06 PM 3,311 Plasma2_.java
> 7 File(s) 19,651 bytes
>
> As you can see, I added a folder moreStuff and I moved the Red_And_Blue plugin into it.
It will work if you create a MoreStuff folder directly in the plugins folder (ImageJ/plugins/MoreStuff) and copy Red_And_Blue.class into it. To create a Plugins>Examples>MoreStuff>Red And Blue command, you will need to package Red_And_Blue.class in a jar file along with a plugins.config file containing the line
Unlike plugins, macros and scripts can be installed in a second level folder. For example, you can create a Plugins>Examples>MoreStuff/Red And Blue command by writing a macro named Red_And_Blue.ijm and saving it in the ImageJ/plugins/Examples/MoreStuff folder.