title: Java jar getResource not working in linux
body: <p>Same lines of code work in Windows but not in Linux. Code is run through a executable jar file. </p>
  
  <ul>
  <li>Entries in BuildPath: {PROJECT}/src,{PROJECT}/res</li>
  <li>Project Path of Test1.java: /src/com/qe/util/Test1</li>
  <li>Project Path of TC_Mapping.xml: /res/TC_Mapping.xml</li>
  </ul>
  
  <p>.</p>
  
  <pre><code>package com.qe.util;
  public class Test1{
      public static void parseTCMapping(){
      ...
          String xmlPath = TCDetailsExtractor.class.getClassLoader().getResource("TC_Mapping.xml").toString();
          System.out.println(xmlPath);
          InputStream is = TCDetailsExtractor.class.getClassLoader().getResourceAsStream(xmlPath);
      ...
      }
  }
  </code></pre>