You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by lixin chu <li...@yahoo.com> on 2004/01/19 17:04:08 UTC

newbie question : cannot resolve symbol when compiling an Action class

sorry for this newbie question, tried, googled, but
can not find an anwser:

I have a Action class (myAction) and a utility class
(myABC class), in myAction, I try to instantiate it:

  myABC abc = new myABC (......);

when compiling, error msg:
~~~~~~~~~~~~~~~~~~~~~~~
cannot reolve symbol
symbol: constructor myABC
location : class com.util.myABC
~~~~~~~~~~~~~~~~~~~~~~~~

what's wrong ?

thanks !
li xin

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: newbie question : cannot resolve symbol when compiling an Action class

Posted by lixin chu <li...@yahoo.com>.
yes, I changed to :
public class MYABC {

  public void MYABC () {

}

  <other methods>

}

still the same thing......

--- e-denton Java Programmer
<ja...@e-denton.com> wrote:
> First, your class name should begin with a capital
> letter by convention. The
> error is saying that no constructor an be found that
> matches "myABC
> (......)". So, be sure there is such a constructor.
> 
> 
> ----- Original Message ----- 
> From: "lixin chu" <li...@yahoo.com>
> To: <st...@jakarta.apache.org>
> Sent: Monday, January 19, 2004 10:04 AM
> Subject: newbie question : cannot resolve symbol
> when compiling an Action
> class
> 
> 
> > sorry for this newbie question, tried, googled,
> but
> > can not find an anwser:
> >
> > I have a Action class (myAction) and a utility
> class
> > (myABC class), in myAction, I try to instantiate
> it:
> >
> >   myABC abc = new myABC (......);
> >
> > when compiling, error msg:
> > ~~~~~~~~~~~~~~~~~~~~~~~
> > cannot reolve symbol
> > symbol: constructor myABC
> > location : class com.util.myABC
> > ~~~~~~~~~~~~~~~~~~~~~~~~
> >
> > what's wrong ?
> >
> > thanks !
> > li xin
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Hotjobs: Enter the "Signing Bonus"
> Sweepstakes
> > http://hotjobs.sweepstakes.yahoo.com/signingbonus
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
> >
> >
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: newbie question : cannot resolve symbol when compiling an Action class

Posted by e-denton Java Programmer <ja...@e-denton.com>.
First, your class name should begin with a capital letter by convention. The
error is saying that no constructor an be found that matches "myABC
(......)". So, be sure there is such a constructor.


----- Original Message ----- 
From: "lixin chu" <li...@yahoo.com>
To: <st...@jakarta.apache.org>
Sent: Monday, January 19, 2004 10:04 AM
Subject: newbie question : cannot resolve symbol when compiling an Action
class


> sorry for this newbie question, tried, googled, but
> can not find an anwser:
>
> I have a Action class (myAction) and a utility class
> (myABC class), in myAction, I try to instantiate it:
>
>   myABC abc = new myABC (......);
>
> when compiling, error msg:
> ~~~~~~~~~~~~~~~~~~~~~~~
> cannot reolve symbol
> symbol: constructor myABC
> location : class com.util.myABC
> ~~~~~~~~~~~~~~~~~~~~~~~~
>
> what's wrong ?
>
> thanks !
> li xin
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
> http://hotjobs.sweepstakes.yahoo.com/signingbonus
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org