wood burning stoves*
The moose likes Applets and the fly likes cannot find symbol error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "cannot find symbol error" Watch "cannot find symbol error" New topic
Author

cannot find symbol error

sumedha vangury
Greenhorn

Joined: Jun 17, 2012
Posts: 29
hi friends i am getting the error cannot find symbol for the code below,just cant figure out where is the problem,can someone please help me out asap..



C:\dct>javac Interface.java
Interface.java:256: error: cannot find symbol
Photo img = new Photo();
^
symbol: class Photo
location: class Interface

Hope to get a solution very soon..thankyou very much
Vivek SharmaJi
Ranch Hand

Joined: Dec 09, 2012
Posts: 38

Please check the Photo class is visible to your this class. Please paste the complete code. Thanks!
sumedha vangury
Greenhorn

Joined: Jun 17, 2012
Posts: 29
thanks for the quick response,but i still dint get how to resolve the error

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39551
    
  27
As Vivek said, your code uses a class called "Photo", and that seems not to be available. Where is it?


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cannot find symbol error
 
Similar Threads
MasterExam OO question
Anyone know why I am getting this error (Regarding building an array based stack)
Autoboxing, checking is two objects refer to the same object
my inverted index not successfull
Protected Modifier Problem