Can not find image

Every time I type in the string code and put it in to the simulator it says image can not be found I am not typing it in wrong either, any suggestions.

line is: local spacebackground = display.newImage(“space.jpg”)

picture name: space.jpg

Error in Corona: Can not find image.

Error in text editor: attempt to index global display (a nil value)

If anyone knows how to fix this please reply it would help a lot…

Obvious question.  space.jpg is in the same folder as main.lua correct?

Rob

Yes it is in the same folder as main.lua

Also I am using windows 8.1 and text editor sciTE…

I can’t think of any reason why you would get that error if the file is where it’s supposed to be.  Also the fact that it’s saying “display” is nil is a bit bothersome too.  I might suggest un-installing and re-installing CoronaSDK.  Also all the messages from the command window would be helpful.  Rather than taking screen shots, you can copy/paste text easier. 

Rob

yep that fixed it thanks

Obvious question.  space.jpg is in the same folder as main.lua correct?

Rob

Yes it is in the same folder as main.lua

Also I am using windows 8.1 and text editor sciTE…

I can’t think of any reason why you would get that error if the file is where it’s supposed to be.  Also the fact that it’s saying “display” is nil is a bit bothersome too.  I might suggest un-installing and re-installing CoronaSDK.  Also all the messages from the command window would be helpful.  Rather than taking screen shots, you can copy/paste text easier. 

Rob

yep that fixed it thanks