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 Could not find symbol class. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Could not find symbol class. " Watch "Could not find symbol class. " New topic
Author

Could not find symbol class.

kash khan
Greenhorn

Joined: Feb 01, 2012
Posts: 7


now i get the error showing this "could not find symbol class person"
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 9940
    
    6

you are actually getting more than that in your error. It tells you the exact line the error appears on. All that information is helpful.

Further, you are probably getting "could not find symbol class Person". Note the capital "P". In java, the case makes a difference, so "person" is NOT the same thing at all as "Person". These sort of details are important.

Looking at your code, I am not surprised you get this error. What is a "Person"? You are trying to create an array of them on line 11, but nowhere do you tell the java compiler what a person is. At the very least, you need to have a class somewhere that defines what a Person class looks like. You may then need to import it, depending on where the .class file is.


Never ascribe to malice that which can be adequately explained by stupidity.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32627
    
    4
. . . but the thread title suggested a completely different error message.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Could not find symbol class.
 
Similar Threads
output prints null
Equals Method, greatherThan lessThan methods
Do not know how to code some cases and exit the loop with "Enter"
Input Validation Help
average monthly temps and arrays