Login  Register

Re: Plugins that don't run from "Compile and Run..." ???

Posted by Bill Mohler on Apr 06, 2009; 9:18pm
URL: http://imagej.273.s1.nabble.com/Plugins-that-don-t-run-from-Compile-and-Run-tp3693072p3693076.html

Thanks, Albert.  But this doesn't seem to be a problem of being
installed.  I can't even get the plugin to run when I select it from
"Compile and Run..."
or when I choose "Compile and Run" from the File menu of a text
window in ImageJ.  The class file compiles just fine (no errors or
warnings), but nothing runs.

I don't thing it's the underscore issue (I know I need that for to
class to appear in the Plugins menu).

Am I still missing something obvious?

Bill

>Bill,
>
>The PlugIn needs an underscore in the class name to be recognized as
>a PlugIn intended as an ImageJ menu command.
>
>So instead of HyperStackReducer, call it HyperStack_Reducer in a
>HyperStack_Reducer.java file.
>
>Otherwise it won't appear on the menus ever after compilation (nor
>it will be run, I think, from what you describe.)
>
>Albert
>
>--
>Albert Cardona
>http://albert.rierol.net