• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help understanding error messages

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Post all of the code, please. It would make it a lot easier to help you.
 
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Candie Duggan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is the whole code. The errors start at theMusicCDInventory.addMusicCD (theMusicCD);



Thank you again for your help.

 
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
before you do



you have to declare



or you can combine both steps and do


 
Moojid Hamid
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, I see it now MusicCDInventoryValueLabel is supposed to be entireMusicCDInventoryValueLabel.

 
Candie Duggan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic