Login  Register

Re: Running ImageJ within Eclipse

Posted by Wayne Rasband on May 02, 2007; 4:54pm
URL: http://imagej.273.s1.nabble.com/Running-ImageJ-within-Eclipse-tp3699621p3699622.html

Where does ImageJ think the plugins directory is? You can find out by
opening a text editor window (type shift-n), entering

     getDirectory("plugins")

and typing ctrl-r (Macros>Run Macro).

-wayne


On May 2, 2007, at 10:42 AM, James Cooper wrote:

> I have the ImageJ sources in an Eclipse project under IJ/src and
> IJ/bin,
> and running ij.ImageJ brings up the menu fine.
> I put the Analyze plugins in IJ/src/plugins and IJ/bin/plugins and have
> the following VM args:
>
> -Dplugins.dir=c:/workspace/IJ/bin/ -Dmacros.dir=c:/workspace/IJ/
>
> The plugins menu shows Analyze Reader and Analyze Writer. However, if I
> try to run them from the Plugins menu, I get
>
> plugin or class not found: "Analyze_Reader"
> (java.lang.NoClassDefFoundError: Analyze_Reader (wrong name:
> plugins/Analyze_Reader))
>
> What do I change here to make this work?
>
> James W. Cooper
> Text Analytics
> IBM T J Watson Research Center
> [hidden email]
> 914-784-7285
> http://flahdo.watson.ibm.com/
> http://www.research.ibm.com/people/j/jwcnmr/
>