Im trying to write a game in Java using Eclipse (with acm plugins if I've got the terminology right), but I cant seem to load images, it cant even find them.
Not sure if its Eclipse or my complete lack of programing ability, but as I've been at it less than a fortnight, probably the latter
Im trying to call it with
and a few variations there of, but whatever I seem to type, it seems happy with everything but the file name which gets underlined and tells me it couldnt be resolved. I tried adding it as a private instance variable, I've tried putting the image in the workspace folder, the project folder, the src directory of the project folder and I've created a folder called images, put it in there and moved the folder around, I've also tried other images (jpgs & gifs) to make sure the image file itself isnt the problem, but it still doesnt want to find it.
I figured it must be a problem with my code, however when I use the eclipse tool bar to search for files it doesnt return any image files there either, which made me wonder if its an eclipse issue after all.
Any advice would be very much appreciated, I've been stuck on it for hours..I've got the game working, I really thought chucking a background image in would be the easy bit!