Hi - I am writing a plugin that uses the ColorProcessor.getChannel()
method. When I run the plugin in Eclipse it works just fine but when I run it in Fiji or ImageJ by placing the .jar file in the appropriate plugins directory I get the following error: java.lang.NoSuchMethodError: ij.process.ColorProcessor.getChannel(I)[B The "[B" at the end are in the Exception window and I have no idea what that means. The line of code where the problem occurs is: byte[] array1 = image.getChannel(chanA); image is a ColorProcessor and chanA is an int. I import ij.process.* at the top of the plugin. Can anyone make sense out of what I'm doing wrong? Thanks in advance for any help. Ned -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Hi Ned,
> java.lang.NoSuchMethodError: ij.process.ColorProcessor.**getChannel(I)[B Did you verify that your Fiji/ImageJ installation is the same (or newer) version of ImageJ as your Eclipse ImageJ dependency? Click the ImageJ status bar to see the version number. If your Fiji/ImageJ version is older, try updating the ij.jar to a newer version first (Help > Update ImageJ). Regards, Curtis On Thu, Jul 5, 2012 at 3:41 PM, Ned Horning <[hidden email]> wrote: > Hi - I am writing a plugin that uses the ColorProcessor.getChannel() > method. When I run the plugin in Eclipse it works just fine but when I run > it in Fiji or ImageJ by placing the .jar file in the appropriate plugins > directory I get the following error: > > java.lang.NoSuchMethodError: ij.process.ColorProcessor.**getChannel(I)[B > > The "[B" at the end are in the Exception window and I have no idea what > that means. The line of code where the problem occurs is: > > byte[] array1 = image.getChannel(chanA); > > image is a ColorProcessor and chanA is an int. I import ij.process.* at > the top of the plugin. > > Can anyone make sense out of what I'm doing wrong? > > Thanks in advance for any help. > > Ned > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.**html<http://imagej.nih.gov/ij/list.html> > -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Thanks Curtis - updating ij.jar did the trick.
Ned On 07/05/2012 04:46 PM, Curtis Rueden wrote: > Hi Ned, > > >> java.lang.NoSuchMethodError: ij.process.ColorProcessor.**getChannel(I)[B > > Did you verify that your Fiji/ImageJ installation is the same (or newer) > version of ImageJ as your Eclipse ImageJ dependency? Click the ImageJ > status bar to see the version number. If your Fiji/ImageJ version is older, > try updating the ij.jar to a newer version first (Help > Update ImageJ). > > Regards, > Curtis > > > On Thu, Jul 5, 2012 at 3:41 PM, Ned Horning <[hidden email]> wrote: > >> Hi - I am writing a plugin that uses the ColorProcessor.getChannel() >> method. When I run the plugin in Eclipse it works just fine but when I run >> it in Fiji or ImageJ by placing the .jar file in the appropriate plugins >> directory I get the following error: >> >> java.lang.NoSuchMethodError: ij.process.ColorProcessor.**getChannel(I)[B >> >> The "[B" at the end are in the Exception window and I have no idea what >> that means. The line of code where the problem occurs is: >> >> byte[] array1 = image.getChannel(chanA); >> >> image is a ColorProcessor and chanA is an int. I import ij.process.* at >> the top of the plugin. >> >> Can anyone make sense out of what I'm doing wrong? >> >> Thanks in advance for any help. >> >> Ned >> >> -- >> ImageJ mailing list: http://imagej.nih.gov/ij/list.**html<http://imagej.nih.gov/ij/list.html> >> > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Edit this page |