jQuery in Action, 3rd edition
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

cannot find symbol error

sumedha vangury

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

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

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42958
As Vivek said, your code uses a class called "Photo", and that seems not to be available. Where is it?
I agree. Here's the link: http://aspose.com/file-tools
subject: cannot find symbol error
jQuery in Action, 3rd edition