problem loading .properties file in java
<p>I am having problem while loading .properties file.
The following works:</p>

<pre><code>private static Properties props = new Properties();
 ................
 .......................
 configurationProps.load(Test.class.getResourceAsStream("test.properties"));
</code></pre>

<p>But this;</p>

<pre><code>private static Properties props = new Properties();
 ................
 .......................
 configurationProps.load(Test.class.getResourceAsStream("C:\\someFilder\\test.properties"));
</code></pre>

<p>gives the following error.</p>

<pre><code>Exception in thread "main" java.lang.NullPointerException
 at java.util.Properties.load(Properties.java:267)
 at Test.init(Test.java:24)
 at Test.main(Test.java:16)
</code></pre>

<p>I am wondering why its not taking full path.
Any suggestion is highly appreciated.</p>
