File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 18505
    
  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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Help understanding error messages
 
Similar Threads
create report with java
Problem with method
my inverted index not successfull
Intelligent Agents
Question about restart