"cannot resolve symbol"
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Luca_Paoli
Posted On:   Thursday, July 25, 2002 10:52 AM

I got two java files in the same dir, one's holdilng class A and the other holding class B. A contains the main method; B contains a class which extends the JFrame class. B gets instantiated by the main method in A. B compiles correctly. A does not compile and this is the error message shown: cannot resolve symbol symbol : class B location: class A B b = new B(); cannot resolve symbol symbol : class B location: class A B b = new B(); How can that get fixed?? TNX Luca    More>>

I got two java files in the same dir, one's holdilng class A and the other holding class B.


A contains the main method;


B contains a class which extends the JFrame class.


B gets instantiated by the main method in A.


B compiles correctly.


A does not compile and this is the error message shown:


cannot resolve symbol


symbol : class B


location: class A


B b = new B();


cannot resolve symbol


symbol : class B


location: class A

B b = new B();


How can that get fixed??


TNX


Luca

   <<Less

Re: "cannot resolve symbol"

Posted By:   jyothi_y  
Posted On:   Friday, July 26, 2002 01:04 AM

hi,

set the class path to . i.e current directory and
compile with javac -d . B.java and same for A.


Jyothi

Re: "cannot resolve symbol"

Posted By:   Anonymous  
Posted On:   Thursday, July 25, 2002 02:54 PM

It seems that problem with classpath. try setting classpath to . (current directory)
About | Sitemap | Contact