title: adding relative directory to java classpath and using ClassLoader().getResourceAsStream("")
body: <p>Is it possible to add a relative directory (ie, foo/bar/plugh) to the java classpath and use </p>
  
  <pre><code>InputStream in = getClassLoader().getResourceAsStream("xyzzy.properties");
  </code></pre>
  
  <p>To fetch foo/bar/plugh/xyzzy.properties?</p>
  
  <p>My classpath looks like this:</p>
  
  <pre><code>foo.jar;foo/bar/plugh;xyz.jar 
  </code></pre>
  
  <p>And I am able to use classes and resources from both foo and xyz jars but not from the plugh directory. In those cases, <code>in</code> is always null.</p>
  
  <p>I can't get this to work and am not sure if this is just unsupported, I am missing something subtle or if I'm doing something wrong. Do I need to use an absolute path?</p>