title: Java classLoader within a jar file
body: <p>I work with the follwing project:</p>
  
  <p><strong>Test-Project</strong> </p>
  
  <pre><code>/lib/classA.jar
  /src/main/java/org/test/classB.java
  /src/main/resources/log.txt
  </code></pre>
  
  <p>In <strong>classA.jar</strong>, I work with the <code>ClassLoader.getSystemClassLoader()</code> to get the path of the "log.txt" file. In the project of <em>classA.jar</em>, there is no problem with that. 
  <p>But when I use the jar in the <em>Test-Project</em> I get the follwing path to the "log.txt" file:
  <p> /lib/classA.jar!/log.txt <p>
  Is there a way to get the classloader from <em>Test-Project</em> into to the jarfile?</p>