When compiling the current Grid_Overlay.java plugin, I get the error
message appended below. I'm running ImageJ Version 1.42o on a MacBook Pro OSX 10.5.7 with Java 1.5.0_16. Can somebody help me to fix this problem? Thank you, Rudolf Error message: /Applications/ImageJ/plugins/Graphics/Grid_Overlay.java:44: incompatible types found : ij.gui.ImageCanvas required: ImageCanvas ImageCanvas ic = imp.getCanvas(); ^ /Applications/ImageJ/plugins/Graphics/Grid_Overlay.java:47: cannot find symbol symbol : method setDisplayList(<nulltype>) location: class ImageCanvas ic.setDisplayList(null); ^ /Applications/ImageJ/plugins/Graphics/Grid_Overlay.java:49: cannot find symbol symbol : method setDisplayList(java.awt.geom.GeneralPath,java.awt.Color,<nulltype>) location: class ImageCanvas ic.setDisplayList(path, getColor(), null); ^ 3 errors |
Hi Rudolf,
it seems that you have a local plugin that defines an ImageCanvas class? Then, write ij.gui.ImageCanvas ic = imp.getCanvas(); in line 44. Michael ________________________________________________________________ On 27 May 2009, at 15:54, Rudolf Oldenbourg wrote: > When compiling the current Grid_Overlay.java plugin, I get the > error message appended below. > I'm running ImageJ Version 1.42o on a MacBook Pro OSX 10.5.7 with > Java 1.5.0_16. > > Can somebody help me to fix this problem? > > Thank you, > Rudolf > > Error message: > > /Applications/ImageJ/plugins/Graphics/Grid_Overlay.java:44: > incompatible types > found : ij.gui.ImageCanvas > required: ImageCanvas > ImageCanvas ic = imp.getCanvas(); > ^ > /Applications/ImageJ/plugins/Graphics/Grid_Overlay.java:47: cannot > find symbol > symbol : method setDisplayList(<nulltype>) > location: class ImageCanvas > ic.setDisplayList(null); > ^ > /Applications/ImageJ/plugins/Graphics/Grid_Overlay.java:49: cannot > find symbol > symbol : method setDisplayList > (java.awt.geom.GeneralPath,java.awt.Color,<nulltype>) > location: class ImageCanvas > ic.setDisplayList(path, getColor(), null); > ^ > 3 errors |
Michael, you were right on both accounts.
The View5DImageJ collection of plugins defines a ImageCanvas class. After removing it from my plugins folder, the problem went away. Restoring View5DImageJ plugins and making the edit you suggested in Grid_Overlay.java fixed the problem as well. Thank you very much! Rudolf On May 27, 2009, at 10:34 AM, Michael Schmid wrote: > Hi Rudolf, > > it seems that you have a local plugin that defines an ImageCanvas > class? > Then, write > ij.gui.ImageCanvas ic = imp.getCanvas(); > in line 44. > > > Michael > ________________________________________________________________ > > On 27 May 2009, at 15:54, Rudolf Oldenbourg wrote: > >> When compiling the current Grid_Overlay.java plugin, I get the >> error message appended below. >> I'm running ImageJ Version 1.42o on a MacBook Pro OSX 10.5.7 with >> Java 1.5.0_16. >> >> Can somebody help me to fix this problem? >> >> Thank you, >> Rudolf >> >> Error message: >> >> /Applications/ImageJ/plugins/Graphics/Grid_Overlay.java:44: >> incompatible types >> found : ij.gui.ImageCanvas >> required: ImageCanvas >> ImageCanvas ic = imp.getCanvas(); >> ^ >> /Applications/ImageJ/plugins/Graphics/Grid_Overlay.java:47: cannot >> find symbol >> symbol : method setDisplayList(<nulltype>) >> location: class ImageCanvas >> ic.setDisplayList(null); >> ^ >> /Applications/ImageJ/plugins/Graphics/Grid_Overlay.java:49: cannot >> find symbol >> symbol : method >> setDisplayList(java.awt.geom.GeneralPath,java.awt.Color,<nulltype>) >> location: class ImageCanvas >> ic.setDisplayList(path, getColor(), null); >> ^ >> 3 errors |
Hi,
On Wed, 27 May 2009, Rudolf Oldenbourg wrote: > The View5DImageJ collection of plugins defines a ImageCanvas class. As there is no real maintainer of View5D, we fixed that very issue in Fiji, by moving the class into its own package. Ciao, Dscho |
Free forum by Nabble | Edit this page |