Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

COMPILE ERROR "cannot find symbol"

807598Oct 24 2006 — edited Oct 24 2006
Hi,
I am pretty new at java however i know this error is wrong in one sense. My java file works fine at school however when i get home and compile it i get this message:


C:\Documents and Settings\Michelle\My Documents\My Documents\Kingston University\Programme Essentials\Assignment\Assignment Lab 5\PairTest.java:9: cannot find symbol
symbol : class Pair
location: class PairTest
Pair stuartsPair = new Pair(100,20);
^
C:\Documents and Settings\Michelle\My Documents\My Documents\Kingston University\Programme Essentials\Assignment\Assignment Lab 5\PairTest.java:9: cannot find symbol
symbol : class Pair
location: class PairTest
Pair stuartsPair = new Pair(100,20);
^
2 errors

Tool completed with exit code 1
________________________________________________________

iv'e got the two java files and class files in the same folder.
so i was woundering why does this message appear?
thanks alot
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 21 2006
Added on Oct 24 2006
15 comments
420 views