Login  Register

How to run G. Landini's Align RGB planes in Fiji?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

How to run G. Landini's Align RGB planes in Fiji?

lechristophe
HI,

I'd like to use the Align RGB Planes plugin from Gabriel Landini in Fiji. I
downloaded the plugin from Fiji's wiki (http://fiji.sc/Align_RGB_planes),
unzipped the compressed file and put both files (.class and .java) in a
subfolder of the Plugins folder.

When attempting to run it on an RGB image I get the following errors:


/Users/christo/Travail/Labo/Processing/Fiji_current/Fiji.app/plugins/added
plugins/Align_RGB_planes.java:198: cannot find symbol
symbol  : constructor TextField(java.lang.String,int)
location: class TextField
txtpar1 = new TextField(""+par1, 3);
          ^
/Users/christo/Travail/Labo/Processing/Fiji_current/Fiji.app/plugins/added
plugins/Align_RGB_planes.java:199: cannot find symbol
symbol  : constructor TextField(java.lang.String,int)
location: class TextField
 txtpar2 = new TextField(""+par2, 3);
          ^
/Users/christo/Travail/Labo/Processing/Fiji_current/Fiji.app/plugins/added
plugins/Align_RGB_planes.java:200: cannot find symbol
symbol  : constructor TextField(java.lang.String,int)
location: class TextField
txtpar3 = new TextField(""+par3, 3);
          ^
/Users/christo/Travail/Labo/Processing/Fiji_current/Fiji.app/plugins/added
plugins/Align_RGB_planes.java:223:
addComponent(java.awt.Panel,int,int,int,int,int,java.awt.Component) in
Align_RGB_planes cannot be applied to
(java.awt.Panel,int,int,int,int,int,TextField)
 addComponent(pnMain, 1, 1, 1, 1, 3, txtpar1);
^
/Users/christo/Travail/Labo/Processing/Fiji_current/Fiji.app/plugins/added
plugins/Align_RGB_planes.java:235:
addComponent(java.awt.Panel,int,int,int,int,int,java.awt.Component) in
Align_RGB_planes cannot be applied to
(java.awt.Panel,int,int,int,int,int,TextField)
 addComponent(pnMain, 8, 1, 1, 1, 3, txtpar2);
^
/Users/christo/Travail/Labo/Processing/Fiji_current/Fiji.app/plugins/added
plugins/Align_RGB_planes.java:242:
addComponent(java.awt.Panel,int,int,int,int,int,java.awt.Component) in
Align_RGB_planes cannot be applied to
(java.awt.Panel,int,int,int,int,int,TextField)
 addComponent(pnMain, 10, 1, 1, 1, 3, txtpar3);
^
/Users/christo/Travail/Labo/Processing/Fiji_current/Fiji.app/plugins/added
plugins/Align_RGB_planes.java:276: cannot find symbol
symbol  : method addActionListener(Align_RGB_planes)
location: class TextField
txtpar2.addActionListener(this);
       ^
/Users/christo/Travail/Labo/Processing/Fiji_current/Fiji.app/plugins/added
plugins/Align_RGB_planes.java:280: cannot find symbol
symbol  : method addActionListener(Align_RGB_planes)
location: class TextField
 txtpar3.addActionListener(this);
       ^
8 errors


What's wrong? I have the impression that Fiji doesn't like plugins that are
not packaged as jar files anymore, because I had a problem with another
plugin that was distributed as a .java/.class file recently and I could
only solve it by loading the java code and making a jar file from the
Script Editor.

Thanks for your help,

Christophe

--
Christophe Leterrier
Researcher
Axonal Domains Architecture Team
CRN2M CNRS UMR 7286
Aix Marseille University, France

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: How to run G. Landini's Align RGB planes in Fiji?

lechristophe
Hi again,

I just figured out that adding an import for Textfield at the beginning of
the Align RGB Planes plugin makes it work again in Fiji (import
java.awt.TextField;)

Is it an exemple of the inconsistency between Fiji and ImageJ default
import that we discussed previously (
https://groups.google.com/group/fiji-devel/tree/browse_frm/month/2011-11/e7d7d9d53be5f206
)?

Thanks for your advices,

Christophe




On Thu, May 2, 2013 at 10:47 AM, Christophe Leterrier <
[hidden email]> wrote:

> HI,
>
> I'd like to use the Align RGB Planes plugin from Gabriel Landini in Fiji.
> I downloaded the plugin from Fiji's wiki (http://fiji.sc/Align_RGB_planes),
> unzipped the compressed file and put both files (.class and .java) in a
> subfolder of the Plugins folder.
>
> When attempting to run it on an RGB image I get the following errors:
>
>
> /Users/christo/Travail/Labo/Processing/Fiji_current/Fiji.app/plugins/added
> plugins/Align_RGB_planes.java:198: cannot find symbol
> symbol  : constructor TextField(java.lang.String,int)
> location: class TextField
> txtpar1 = new TextField(""+par1, 3);
>           ^
> /Users/christo/Travail/Labo/Processing/Fiji_current/Fiji.app/plugins/added
> plugins/Align_RGB_planes.java:199: cannot find symbol
> symbol  : constructor TextField(java.lang.String,int)
> location: class TextField
>  txtpar2 = new TextField(""+par2, 3);
>           ^
> /Users/christo/Travail/Labo/Processing/Fiji_current/Fiji.app/plugins/added
> plugins/Align_RGB_planes.java:200: cannot find symbol
> symbol  : constructor TextField(java.lang.String,int)
> location: class TextField
> txtpar3 = new TextField(""+par3, 3);
>           ^
> /Users/christo/Travail/Labo/Processing/Fiji_current/Fiji.app/plugins/added
> plugins/Align_RGB_planes.java:223:
> addComponent(java.awt.Panel,int,int,int,int,int,java.awt.Component) in
> Align_RGB_planes cannot be applied to
> (java.awt.Panel,int,int,int,int,int,TextField)
>  addComponent(pnMain, 1, 1, 1, 1, 3, txtpar1);
> ^
> /Users/christo/Travail/Labo/Processing/Fiji_current/Fiji.app/plugins/added
> plugins/Align_RGB_planes.java:235:
> addComponent(java.awt.Panel,int,int,int,int,int,java.awt.Component) in
> Align_RGB_planes cannot be applied to
> (java.awt.Panel,int,int,int,int,int,TextField)
>  addComponent(pnMain, 8, 1, 1, 1, 3, txtpar2);
> ^
> /Users/christo/Travail/Labo/Processing/Fiji_current/Fiji.app/plugins/added
> plugins/Align_RGB_planes.java:242:
> addComponent(java.awt.Panel,int,int,int,int,int,java.awt.Component) in
> Align_RGB_planes cannot be applied to
> (java.awt.Panel,int,int,int,int,int,TextField)
>  addComponent(pnMain, 10, 1, 1, 1, 3, txtpar3);
> ^
> /Users/christo/Travail/Labo/Processing/Fiji_current/Fiji.app/plugins/added
> plugins/Align_RGB_planes.java:276: cannot find symbol
> symbol  : method addActionListener(Align_RGB_planes)
> location: class TextField
> txtpar2.addActionListener(this);
>        ^
> /Users/christo/Travail/Labo/Processing/Fiji_current/Fiji.app/plugins/added
> plugins/Align_RGB_planes.java:280: cannot find symbol
> symbol  : method addActionListener(Align_RGB_planes)
> location: class TextField
>  txtpar3.addActionListener(this);
>        ^
> 8 errors
>
>
> What's wrong? I have the impression that Fiji doesn't like plugins that
> are not packaged as jar files anymore, because I had a problem with another
> plugin that was distributed as a .java/.class file recently and I could
> only solve it by loading the java code and making a jar file from the
> Script Editor.
>
> Thanks for your help,
>
> Christophe
>
> --
> Christophe Leterrier
> Researcher
> Axonal Domains Architecture Team
> CRN2M CNRS UMR 7286
> Aix Marseille University, France
>
>
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: [fiji-devel] Re: How to run G. Landini's Align RGB planes in Fiji?

ctrueden
Hi Christophe,

> Is it an exemple of the inconsistency between Fiji and ImageJ default
> import that we discussed previously

Nope, the thread you linked is regarding Javascript. AFAIK, no version of
ImageJ (Fiji or otherwise) does any auto-importing for Java plugins.

But this problem actually has been discussed on fiji-devel before:

    https://groups.google.com/d/msg/fiji-devel/ZnM5YHAllDw/4Au_fSKIaBwJ

Analogous to the problem in that thread, the issue here is that the class
TextField (with no package) is defined in one of the JAR files which ships
with Fiji: plugins/Volume_Viewer-2.01.1-SNAPSHOT.jar.

Strangely, and unfortunately, classes in the default package take silent
precedence over those in a named package when using wildcard imports.

Regards,
Curtis


On Thu, May 2, 2013 at 3:58 AM, Christophe Leterrier <
[hidden email]> wrote:

> Hi again,
>
> I just figured out that adding an import for Textfield at the beginning of
> the Align RGB Planes plugin makes it work again in Fiji (import
> java.awt.TextField;)
>
> Is it an exemple of the inconsistency between Fiji and ImageJ default
> import that we discussed previously (
> https://groups.google.com/group/fiji-devel/tree/browse_frm/month/2011-11/e7d7d9d53be5f206
> )?
>
> Thanks for your advices,
>
> Christophe
>
>
>
>
> On Thu, May 2, 2013 at 10:47 AM, Christophe Leterrier <
> [hidden email]> wrote:
>
>> HI,
>>
>> I'd like to use the Align RGB Planes plugin from Gabriel Landini in Fiji.
>> I downloaded the plugin from Fiji's wiki (http://fiji.sc/Align_RGB_planes),
>> unzipped the compressed file and put both files (.class and .java) in a
>> subfolder of the Plugins folder.
>>
>> When attempting to run it on an RGB image I get the following errors:
>>
>>
>> /Users/christo/Travail/Labo/Processing/Fiji_current/Fiji.app/plugins/added
>> plugins/Align_RGB_planes.java:198: cannot find symbol
>> symbol  : constructor TextField(java.lang.String,int)
>> location: class TextField
>> txtpar1 = new TextField(""+par1, 3);
>>           ^
>> /Users/christo/Travail/Labo/Processing/Fiji_current/Fiji.app/plugins/added
>> plugins/Align_RGB_planes.java:199: cannot find symbol
>> symbol  : constructor TextField(java.lang.String,int)
>> location: class TextField
>>  txtpar2 = new TextField(""+par2, 3);
>>           ^
>> /Users/christo/Travail/Labo/Processing/Fiji_current/Fiji.app/plugins/added
>> plugins/Align_RGB_planes.java:200: cannot find symbol
>> symbol  : constructor TextField(java.lang.String,int)
>> location: class TextField
>> txtpar3 = new TextField(""+par3, 3);
>>           ^
>> /Users/christo/Travail/Labo/Processing/Fiji_current/Fiji.app/plugins/added
>> plugins/Align_RGB_planes.java:223:
>> addComponent(java.awt.Panel,int,int,int,int,int,java.awt.Component) in
>> Align_RGB_planes cannot be applied to
>> (java.awt.Panel,int,int,int,int,int,TextField)
>>  addComponent(pnMain, 1, 1, 1, 1, 3, txtpar1);
>> ^
>> /Users/christo/Travail/Labo/Processing/Fiji_current/Fiji.app/plugins/added
>> plugins/Align_RGB_planes.java:235:
>> addComponent(java.awt.Panel,int,int,int,int,int,java.awt.Component) in
>> Align_RGB_planes cannot be applied to
>> (java.awt.Panel,int,int,int,int,int,TextField)
>>  addComponent(pnMain, 8, 1, 1, 1, 3, txtpar2);
>> ^
>> /Users/christo/Travail/Labo/Processing/Fiji_current/Fiji.app/plugins/added
>> plugins/Align_RGB_planes.java:242:
>> addComponent(java.awt.Panel,int,int,int,int,int,java.awt.Component) in
>> Align_RGB_planes cannot be applied to
>> (java.awt.Panel,int,int,int,int,int,TextField)
>>  addComponent(pnMain, 10, 1, 1, 1, 3, txtpar3);
>> ^
>> /Users/christo/Travail/Labo/Processing/Fiji_current/Fiji.app/plugins/added
>> plugins/Align_RGB_planes.java:276: cannot find symbol
>> symbol  : method addActionListener(Align_RGB_planes)
>> location: class TextField
>> txtpar2.addActionListener(this);
>>        ^
>> /Users/christo/Travail/Labo/Processing/Fiji_current/Fiji.app/plugins/added
>> plugins/Align_RGB_planes.java:280: cannot find symbol
>> symbol  : method addActionListener(Align_RGB_planes)
>> location: class TextField
>>  txtpar3.addActionListener(this);
>>        ^
>> 8 errors
>>
>>
>> What's wrong? I have the impression that Fiji doesn't like plugins that
>> are not packaged as jar files anymore, because I had a problem with another
>> plugin that was distributed as a .java/.class file recently and I could
>> only solve it by loading the java code and making a jar file from the
>> Script Editor.
>>
>> Thanks for your help,
>>
>> Christophe
>>
>> --
>> Christophe Leterrier
>> Researcher
>> Axonal Domains Architecture Team
>> CRN2M CNRS UMR 7286
>> Aix Marseille University, France
>>
>>
>>
>  --
> --
> Please avoid top-posting, and please make sure to reply-to-all!
>
> Mailing list web interface: http://groups.google.com/group/fiji-devel
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Fiji-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [hidden email].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html