This week's book giveaways are in the Scala and Android forums.
We're giving away four copies each of Machine Learning Systems: Designs that scale and Xamarin in Action: Creating native cross-platform mobile apps and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

cannot find symbol error  RSS feed

 
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
 
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

 
Rancher
Posts: 42975
76
  • 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?
 
Beware the other head of science - it bites! Nibble on this message:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!