title: InputStream from getResourceAsStream results in NULL
body: <pre><code>        InputStream input = Faculty.class.getClassLoader().getResourceAsStream("Resources\\Names.txt");
          DataInputStream in = new DataInputStream(input);
          BufferedReader br = new BufferedReader(new InputStreamReader(in));
          String strLine;
          while ((strLine = br.readLine()) != null &amp;&amp; !strLine.equals("")) {
              keywords.add(strLine);
          }
  </code></pre>
  
  <p>The code above works in NetBeans. But when I packed the code into an executable Jar and ran it from command line, it gave me a NullPointerException because of the non-initialized <code>input</code>. So I suspect the Jar was not able to read the resource file packaged in it. The folder <code>Resources</code> is directly under source folder of my project. Can anyone give some hint what to try?</p>