This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Help understanding error messages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Help understanding error messages" Watch "Help understanding error messages" New topic
Author

Help understanding error messages

Candie Duggan
Greenhorn

Joined: Mar 28, 2009
Posts: 9
When I try to compile my code it comes back with 21 errors, there are two errors repeated throughout 1) cannot find symbol symbol : method 2) cannot find symbol symbol : variable

error 1 is the .

error 2 is the M at the very beginning

I don't know if you need the whole code to help with this problem of not, it is a long code.

I am new at this and am not sure if I have given enough information to get help.

THANK YOU in advance for your help.


Candie Duggan
Eric Larsen
Ranch Hand

Joined: Mar 28, 2009
Posts: 35
Post all of the code, please. It would make it a lot easier to help you.
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18917
    
  40

When I try to compile my code it comes back with 21 errors, there are two errors repeated throughout 1) cannot find symbol symbol : method 2) cannot find symbol symbol : variable ...



Also, when you get that many errors, you should target to fix only the first few. And then recompile. It is likely that the 21st error is an artifact of the eariler errors, and not a true error.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Candie Duggan
Greenhorn

Joined: Mar 28, 2009
Posts: 9
Here is the whole code. The errors start at theMusicCDInventory.addMusicCD (theMusicCD);



Thank you again for your help.

Moojid Hamid
Ranch Hand

Joined: Mar 07, 2009
Posts: 120
before you do



you have to declare



or you can combine both steps and do


Moojid Hamid
Ranch Hand

Joined: Mar 07, 2009
Posts: 120
Ok, I see it now MusicCDInventoryValueLabel is supposed to be entireMusicCDInventoryValueLabel.

Candie Duggan
Greenhorn

Joined: Mar 28, 2009
Posts: 9
I fixed the entireMusicCDInventoryValue errors but I'm still getting 16 errors. They are all pretty much the same, cannot find symbol.

Thank you again for the help.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help understanding error messages