title: Get resource from jar
body: <p>I have jar with files:</p>
  
  <pre><code>myJar/res/endingRule.txt
  myJar/wordcalculator/merger/Marge.class
  </code></pre>
  
  <p>In Marge.java I have code:
  <pre><code>
  private static final String ENDINGS_FILE_NAME = "res/endingRule.txt";
  ....
  InputStream inputStream  = getClass().getClassLoader().getResourceAsStream(ENDINGS_FILE_NAME);
  .....</p>
  
  <p></pre></code>
  But after this inputStream is null. How to work with resources? Why null? </p>