title: java class path issue with properties file
body: <p>I have a batch file to set class path before calling the java main method, see code below</p>
  
  <pre><code>SET CLASSPATH=%CLASSPATH%;libs/xyz1.jar
  SET CLASSPATH=%CLASSPATH%;libs/xyz2.jar
  SET CLASSPATH=%CLASSPATH%;libs/xyz3.jar
  SET CLASSPATH=%CLASSPATH%;libs/xyz4.jar
  SET CLASSPATH=%CLASSPATH%;libs/xyz5.jar
  SET CLASSPATH=%CLASSPATH%;libs/xyz6.jar
  SET CLASSPATH=%CLASSPATH%;/resource
  
  java -classpath %CLASSPATH% com.xyz.main
  </code></pre>
  
  <p>if I keep my properties file inside the resource folder it works fine, but if I leave it in root folder it doesn't work. </p>
  
  <pre><code>SET CLASSPATH=%CLASSPATH%;libs/xyz1.jar
  SET CLASSPATH=%CLASSPATH%;libs/xyz2.jar
  SET CLASSPATH=%CLASSPATH%;libs/xyz3.jar
  SET CLASSPATH=%CLASSPATH%;libs/xyz4.jar
  SET CLASSPATH=%CLASSPATH%;libs/xyz5.jar
  SET CLASSPATH=%CLASSPATH%;libs/xyz6.jar
  
  java -classpath %CLASSPATH% com.xyz.main
  </code></pre>
  
  <p>the above class path setting don't work am getting null pointer exception</p>
  
  <pre><code>SET CLASSPATH=%CLASSPATH%;libs/xyz1.jar
  SET CLASSPATH=%CLASSPATH%;libs/xyz2.jar
  SET CLASSPATH=%CLASSPATH%;libs/xyz3.jar
  SET CLASSPATH=%CLASSPATH%;libs/xyz4.jar
  SET CLASSPATH=%CLASSPATH%;libs/xyz5.jar
  SET CLASSPATH=%CLASSPATH%;libs/xyz6.jar
  SET CLASSPATH=%CLASSPATH%;/
  
  java -classpath %CLASSPATH% com.xyz.main
  </code></pre>
  
  <p>the above class path setting don't work am getting the same null pointer exception.</p>
  
  <p>Am using java util properties as below. </p>
  
  <pre><code>  InputStream inputStream = this.getClass().getResourceAsStream("/abc.properties");
    getProperties().load(inputStream);
  </code></pre>
  
  <p>it will be really nice if someone can help me find, why this happens. thank you in advance.</p>