Hi,
I am trying to build & run the imageJ using all the source code "ij135p-src.zip" available at ( http://rsb.info.nih.gov/ij/download/src/). I am using Netbeans IDE using the following tutorial (http://rsb.info.nih.gov/ij/developer/NBTutorial.html) to build the source code & plugins. I am running Windows XP with JDK 5.0. Following errors are seen during compilation. C:\ImageJ\source\plugins\MacAdapter.java:4: package com.apple.mrj does not exist, One way to get rid of the error would be to remove the MacAdapter.Java from the project, Since I am running in windows, do I need the MacAdapter.Java file??? Or Is there any way I could add the package com.apple.mrj??? Thanks, Nilesh. |
Hi,
On Wed, 15 Feb 2006, Powar, Nilesh wrote: > Is there any way I could add the package com.apple.mrj??? Yes. You can steal it from a Mac OS X computer. But I don't know if it is all Java, or some native dependencies exist. The best thing is to include the .class compiled on a Mac, and leave out/disable the .java file. Hth, Dscho |
Hi,
I am using NetBeans 4.1 on two machines running on Win XP home in one and Win2000 in another. I removed the Mac Adaptor.java. in both. I can write, compile and debug my plugins in ImageJ without any problem. Perhaps along with the notes for compiling ImageJ in NetBeans one shld. add this. Balaji .J On 2/15/06, Johannes Schindelin <[hidden email]> wrote: > > Hi, > > On Wed, 15 Feb 2006, Powar, Nilesh wrote: > > > Is there any way I could add the package com.apple.mrj??? > > Yes. You can steal it from a Mac OS X computer. But I don't know if it is > all Java, or some native dependencies exist. The best thing is to include > the .class compiled on a Mac, and leave out/disable the .java file. > > Hth, > Dscho > |
In reply to this post by Powar, Nilesh
Hi,
Thanks for the information, I removed the Macadapter.java because its not needed when I run it in windows. The Plugin "Myinverter.Java" shows couple of errors. since the get(i) does not match the definition of get(int,int)& set(i,255-p) does not match the definition of set(int,int,int). The following code is attached & the errors are highlighted. Do you know proper arguments for the get & set functions??? public class My_Inverter implements PlugInFilter { public int setup(String arg, ImagePlus img) { return DOES_8G; // this plugin accepts 8-bit grayscale images } public void run(ImageProcessor ip) { int w = ip.getWidth(); int h = ip.getHeight(); int size = w*h; ByteProcessor ip2 = (ByteProcessor)ip; for (int i = 0; i < size; i++) { int p = ip2.get(i); ip2.set(i,255-p); } } } Thanks Nilesh -----Original Message----- From: ImageJ Interest Group [mailto:[hidden email]]On Behalf Of Soft Aliance Sent: Wednesday, February 15, 2006 5:36 PM To: [hidden email] Subject: Re: Debugging ImageJ using Netbeans Hi, I am using NetBeans 4.1 on two machines running on Win XP home in one and Win2000 in another. I removed the Mac Adaptor.java. in both. I can write, compile and debug my plugins in ImageJ without any problem. Perhaps along with the notes for compiling ImageJ in NetBeans one shld. add this. Balaji .J On 2/15/06, Johannes Schindelin <[hidden email]> wrote: > > Hi, > > On Wed, 15 Feb 2006, Powar, Nilesh wrote: > > > Is there any way I could add the package com.apple.mrj??? > > Yes. You can steal it from a Mac OS X computer. But I don't know if it is > all Java, or some native dependencies exist. The best thing is to include > the .class compiled on a Mac, and leave out/disable the .java file. > > Hth, > Dscho > |
I do not know of methods get and set in Image processor. But you can use
ip2.getPixel(int x, int y) and ip2.putPixel(int x, int y, int value). You can get more information here. http://rsb.info.nih.gov/ij/developer/api/index.html On 2/15/06, Powar, Nilesh <[hidden email]> wrote: > > Hi, > > Thanks for the information, I removed the Macadapter.java because its not > needed when I run it in windows. > > The Plugin "Myinverter.Java" shows couple of errors. since the get(i) does > not match the definition of get(int,int)& set(i,255-p) does not match the > definition of set(int,int,int). The following code is attached & the errors > are highlighted. Do you know proper arguments for the get & set functions??? > > public class My_Inverter implements PlugInFilter { > > public int setup(String arg, ImagePlus img) { > return DOES_8G; // this plugin accepts 8-bit grayscale > images > } > > public void run(ImageProcessor ip) { > int w = ip.getWidth(); > int h = ip.getHeight(); > int size = w*h; > > ByteProcessor ip2 = (ByteProcessor)ip; > for (int i = 0; i < size; i++) { > int p = ip2.get(i); > ip2.set(i,255-p); > } > } > > } > > Thanks > Nilesh > > -----Original Message----- > From: ImageJ Interest Group [mailto:[hidden email]]On Behalf Of > Soft Aliance > Sent: Wednesday, February 15, 2006 5:36 PM > To: [hidden email] > Subject: Re: Debugging ImageJ using Netbeans > > > Hi, > > I am using NetBeans 4.1 on two machines running on Win XP home in one > and > Win2000 in another. I removed the Mac > Adaptor.java. in both. I can write, compile and debug my plugins in ImageJ > without any problem. > Perhaps along with the notes for compiling ImageJ in NetBeans one shld. > add > this. > > Balaji .J > > On 2/15/06, Johannes Schindelin <[hidden email]> wrote: > > > > Hi, > > > > On Wed, 15 Feb 2006, Powar, Nilesh wrote: > > > > > Is there any way I could add the package com.apple.mrj??? > > > > Yes. You can steal it from a Mac OS X computer. But I don't know if it > is > > all Java, or some native dependencies exist. The best thing is to > include > > the .class compiled on a Mac, and leave out/disable the .java file. > > > > Hth, > > Dscho > > > -- Balaji J Department of biochemistry Weil Medical College of Cornell University, New York - 113 74. alt email: [hidden email] |
Free forum by Nabble | Edit this page |