This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
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: 42374
    
  64
As Vivek said, your code uses a class called "Photo", and that seems not to be available. Where is it?


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cannot find symbol error