Why does the Java compiler say my file was not found in the class path when I can clearly see it in the class path?
<p>I am using <code>java -classpath $CLASSPATH ...</code>, where <code>$CLASSPATH</code> has been set to <code>/file1path/file1:/file2path/file2</code> and so on.  Despite this, Java complains that <code>file1</code> is not found.  I tried to set <code>-Dfile1=file:///fullpath/file1</code>, but it still says it cannot find the file.  Is there any reason why this might happen other than that I am not seeing a simpler problem like a typo or something (which I have checked for many times)?</p>

<p>More specifically, <code>this.getClass().getClassLoader().getResourceAsStream(configurationFileName)</code> is returning <code>null</code>.</p>

<p>The file that is not being found is a configuration file (.properties), not a JAR file.</p>
