title: Loading resource from JAR or file system with getResourceAsStream
body: <p>I'm trying to make a simple Http server.</p>
  
  <p>But I have a little problem.</p>
  
  <p>If my <code>/www</code> dir is in .jar file compilation, all workse perfect:
  code:</p>
  
  <pre><code>private static final String DEFAULT_FILES_DIR = "/www";
  ....
  private String getURLFromHeader(String header) {
      //gettint url from header
      ....
      return DEFAULT_FILES_DIR + url;
  }
  ....
  System.out.println("Resources: " + url + "\n");
  System.out.println("Result code: " + code + "\n");
  </code></pre>
  
  <p>for index.html I become: <code>Resources: /www/index.html Result code: 200</code> -> all works. </p>
  
  <p>But when I make so:</p>
  
  <pre><code>private static final String DEFAULT_FILES_DIR = "D:/.../.../.../www"; // absolute pass;
  ....
  ....
  </code></pre>
  
  <p>server says "No man, i don't know what are you wont from me"! =)
  and type: <code>Resources: D:/.../.../.../www/index.html Result code: 404</code> -> file not found.</p>
  
  <p><strong>What it can be?</strong> </p>
  
  <p>P.s. I tried to put <code>private static final String DEFAULT_FILES_DIR = "D:\\...\\...\\...\\www";</code> but it wouldn't work!))))</p>