I found this suggestion on a Stack Exchange site to print out what the current directory is:
File file = new File("."); for(String fileNames : file.list()) System.out.println(fileNames);
Basically, when I run a game in Eclipse, I get this:
But when I compile the game and run it, it prints out this (it prints out the stuff that is in the same directory as the JAR file is). Images, and sound are working fine. It's just the XML file that is causing this.
How do I make Java read XML files from res folder like it does for images and sound in Eclipse?
My particular code that loads the XML is at http://pastebin.com/59Nt7Dtd.