Exported jar finds some files (not all) even though the paths are the same <p>When I run my program from eclipse, it shows up fine, the images from Resources\ show up, as do the sounds from the same place, and the text files are found properly. However, when I export my jar, and copy the resources into it with 7Zip, the images will work, but the sounds and the text files can't be found, even though they're in the same folder, with the same path used to find them in my code. I can fix this by putting a folder next to the jar file named Resources, and put everything in there, but I'd like to know why just putting it in the jar file only worked for the images, and how I can get it to work with the text and audio files as well. An example to show you what I mean:</p> <pre><code>File inventory = new File("Resources/inv.txt"); threadpath = "Resources/threads.wav"; enemy1 = new Sprite(new Texture("Resources/miniForestGolem.png")); </code></pre> <p>When I run it in eclipse, all three work fine, but when I export it, and put the resources folder in the jar file, only the image works.</p> <p><strong>Edit:</strong></p> <p>I know how to include my resources, and have done so, I'm asking about <em>how/why some of the resources aren't able to be accessed</em>, even after adding them in.</p>