This is driving me crazy. I’ve spent hours googling this and cannot find a single other case of someone with this problem. I have put all my needed images for my program into the src folder, but when I run the program it does not draw the images. I check the bin folder, and they HAVE been properly copied. Even with all of the resources in the bin folder, eclipse doesn’t recognize them when I use the relative filepath. If I open a command prompt and cd to the bin folder and run it, all of the images are drawn, with no changes to the code. How can I get eclipse to use the images by relative filepath??
Share
Copy imagesto theroot folderin to theprojectit should work for you, by default theeclipsewill read thefilewithin theprojectby simply specifying its name and consider it as relative path .Binfolder normally used to store all theclass filesafter compilation of java file in eclipse , this should be the reason for avoiding ,you can add the relative path of the file in to source code with its seperate folers.Correct me if ‘m worng