| Author |
Message.java:6: error: cannot find symbol
|
pravin gajbhiye
Greenhorn
Joined: Aug 20, 2012
Posts: 20
|
|
HI
I am doing practice in core java.
I have set java path=C:\Program Files\Java\jdk1.7.0_03\bin;
CLASSPATH=C:\Program Files\Java\jdk1.7.0_03\bin;
JAVA_HOME=C:\Program Files\Java\jdk1.7.0_03
And write tow simple classes..
When I compiled Home1.java , it is not giving any error but when i compiled Message.java its giving error...
============
when i complie message getting error..
Please help me..
|
 |
James Boswell
Ranch Hand
Joined: Nov 09, 2011
Posts: 657
|
|
|
What directory are you attempting to compile the code from? And what command are you using?
|
 |
Venkat Edala
Greenhorn
Joined: Sep 10, 2012
Posts: 1
|
|
Hi,
i think Home1.java is not present in example folder. check it once.
one option is import that particular class..
|
 |
Darryl Burke
Bartender
Joined: May 03, 2008
Posts: 4201
|
|
Please BeForthrightWhenCrossPostingToOtherSites
http://www.java-forums.org/new-java/62908-message-java-6-error-cannot-find-symbol.html
|
luck, db
There are no new questions, but there may be new answers.
|
 |
gurpeet singh
Ranch Hand
Joined: Apr 04, 2012
Posts: 892
|
|
you have set your classpath to C:\Program Files\Java\jdk1.7.0_03\bin; . javac will look in this director for any class file it needs while compiling Message. so you need to same your Home1 in bin\com\example directory.
Please repost if you need further help
|
OCPJP 6(100 %) OCEWCD 6(91 %)
|
 |
gurpeet singh
Ranch Hand
Joined: Apr 04, 2012
Posts: 892
|
|
Venkat Edala wrote:Hi,
i think Home1.java is not present in example folder. check it once.
one option is import that particular class..
both classes are in the same package. so you need not import it.
|
 |
 |
|
|
subject: Message.java:6: error: cannot find symbol
|
|
|