title: Get Resource from ClassLoader with leading slash
body: <p>i'm trying to access an external method of third part jar by reflection.</p>
  
  <p>1) i add external jar to classpath by "addUrl" method of system class loader</p>
  
  <p>2) i retrieve class type, method, then i invoke the method and it's all working</p>
  
  <p>I decompile part of external jar:</p>
  
  <pre><code>public class Deploy
  {
      ...
  
      public static Deploy init()
      {
          InputStream i = Deploy.class
          .getClassLoader()
          .getResourceAsStream(
          "/com/example/props");
      }
  }
  </code></pre>
  
  <p>Using the third part component this call works, because it reads correctly "props" file.
  But in my code it returns null, intead of:
  "/com/example/props" 
  i've tried:
  "com/example/props"
  without slash and it works.</p>
  
  <p>How can i do to have that code working in my application? Any workaroud? (i have to call it through reflection)</p>
  
  <p>Thanks</p>