Question

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.

enter image description here

I've tried varations, such as "/SpriteSheets/tileset.jpg", "assets/SpriteSheets/tileset.jpg"

However, I can't get it to work.

Was it helpful?

Solution

Well it seems your file name is tileset.png and not tileset.jpg.

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top