I thought I had messed up the classpath, but really it was just Eclipse sucking.
So I’ve got a folder of resources in my project, “data.” It has “images” “fonts” and “sounds” in it. So that I can read these files from the classpath, I right clicked on the data folder and told Eclipse to include it in the build path. Happy days, everything reads from the classpath correctly as if it were in a JAR.
But I find that after doing that when I export a JAR with eclipse it puts the images and sounds directories outside of the data folder. As in, in the top level, along with bin and src, we have data, sounds, and images. And yet, inside data there is the fonts folder.
Any ideas why this is being junky? If I remove the data folder from the build path every time I export a JAR it works. But otherwise, notsomuch.