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/ |
On Wednesday 02 May 2007 15:42:49 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. > What do I change here to make this work? Not sure if this answers your question, but here is a HOWTO for IJ and Eclipse: http://imagejdocu.tudor.lu/imagej-documentation-wiki/Members/ppirrotte/howtos/the-imagej-eclipse-howto/ Regards, Gabriel |
In reply to this post by jwcnmr
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/ > |
The answer it gives me is
c:/workspace/IJ/bin/\plugins\ and that seems to be correct. It must find the two plug-in class files since they are added to the plugins menu. 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/ Wayne Rasband <[hidden email]> Sent by: ImageJ Interest Group <[hidden email]> 05/02/2007 11:54 AM Please respond to ImageJ Interest Group <[hidden email]> To [hidden email] cc Subject Re: Running ImageJ within Eclipse 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/ > |
Try replacing the / with \ in your arguments. Java's not actually
cross-platform, you know. You have to spoonfeed it stuff like this. On 5/3/07, James Cooper <[hidden email]> wrote: > The answer it gives me is > > c:/workspace/IJ/bin/\plugins\ > > and that seems to be correct. It must find the two plug-in class files > since they are added to the plugins menu. > > 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/ > > > > > Wayne Rasband <[hidden email]> > Sent by: ImageJ Interest Group <[hidden email]> > 05/02/2007 11:54 AM > Please respond to > ImageJ Interest Group <[hidden email]> > > > To > [hidden email] > cc > > Subject > Re: Running ImageJ within Eclipse > > > > > > > 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/ > > > -- Frederick Ross Graduate Fellow, (|Siggia> + |McKinney>)/sqrt(2) Lab The Rockefeller University Je ne suis pas Fred Cross! |
In reply to this post by jwcnmr
On May 3, 2007, at 7:17 AM, James Cooper wrote:
> The answer it gives me is > > c:/workspace/IJ/bin/\plugins\ > > and that seems to be correct. It must find the two plug-in > class files since they are added to the plugins menu. This is not correct. The "/\" between "bin" and "plugins" is a problem. Try replacing the -Dplugins.dir=c:/workspace/IJ/bin/ VM argument with -Dplugins.dir=c:\workspace\IJ\bin\ ImageJ, when running on Windows, is not expecting a path to end in "/". ImageJ 1.38r and later will support both Windows ("\") and Unix ("/") path separators on either platform. -wayne |
Free forum by Nabble | Edit this page |