Reputation: 627
Okay; So I've been using Windows for quite some time, however I've recently moved over to a linux-based operating system. I've ran into numerous issues such as the File-System for Linux being case-sensative. IE: Filename.PNG will not load if you try to load Filename.png.
Anyway, That's not my problem here, and I'm kind-of confused.
Here's my problem, in cropped picture format, code and all.
I've tried varations, such as "/SpriteSheets/tileset.jpg", "assets/SpriteSheets/tileset.jpg"
However, I can't get it to work.
Upvotes: 0
Views: 52
Reputation: 53819
Well it seems your file name is tileset.png
and not tileset.jpg
.
Upvotes: 1
Reputation: 2390
Print your current path first with a System.out.println(new File(".").getAbsolutePath())
and then try and see where you should point your path in the program.
EDIT: Eclipse usually points your path inside the workspace, I've had trouble with that previously. You can set the runtime path to a different directory; Go to Run configurations
, choose your configuration, choose tab Arguments
and set the working directory (at the bottom) to a directory of your choosing.
Upvotes: 0