can I load resource from classpath if set to any directory?
<p>I want to load a resource with this:</p>

<pre><code>InputStream iStream = Config.class.getResourceAsStream("autopublisherpath.cfg");
</code></pre>

<p>So I set the CLASSPATH to make it work. This is my dir hierarchy:</p>

<pre><code>- autopublisher
     .classes
     .lib
     .resources
</code></pre>

<p>If I add <strong>%AUTOPUBLISHER_HOME%\resources\config</strong> to my classpath I cannot get the resource. Otherwise if I put my .cfg file in classes and add <strong>%AUTOPUBLISHER_HOME%\classes</strong> the resource is loaded properly. The classes dir doesn't contain anything other than the autopublisherpath.cfg.</p>

<p>Ultimately I want to call:</p>

<blockquote>
  <p>java com.test.Something</p>
</blockquote>

<p>Where something is loading the resource. The thing is I want user to modify this config file so I do not include it inside my jar packaging.</p>

<p>Am I not understanding the CLASSPATH correctly?</p>

<p>thank you</p>
