title: Loading all files from a folder in a jar file
body: <p><strong>How can i load all files from a folder in a jar file?</strong></p>
  
  <p>Untill now i was loading files from a folder like this <code>File[] files = new File("res/Models/" + dir).listFiles();</code> but it doesnt in a fat jar file (i get a <code>NullPointerException</code>).</p>
  
  <p><em>Note: The class that should load files and the files i want to load are in the same jar file. The line i wrote up there works when i run my program in eclipse, but when i expoort a jar file i get a NullPointerException for that line</em></p>