I now know that my problem is classpath-related.. If I move the data folder to the folder called classes(this is where JBuilder put my compiled files) then it works with
getClass().getClassLoader().getResource(...).. But the problem is that when I press "rebuild", JBuilder deletes all files in the classes folder..
I lost A LOT of my new graphics this way
So, I want to have the "data" folder in the project folder right next to "src" and "classes".. This works with jar if I add the following to the manifest:
But it doesn't work inside JBuilder, but I guess it will when I figure out how to change the classpath.. Anyone know how to do this? If I go to project -> project properties -> classpath
I see the classpath, but can't change it..