• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cannot find symbol error

 
sumedha vangury
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 38
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please check the Photo class is visible to your this class. Please paste the complete code. Thanks!
 
sumedha vangury
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the quick response,but i still dint get how to resolve the error

 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As Vivek said, your code uses a class called "Photo", and that seems not to be available. Where is it?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic