Properties file not found - how to locate it as resource?
<p>I have a properties file at location (from netbeans project explorer)</p>

<pre><code>-MyTest
    +Web Pages
    +Source Packages
    -Test Packages
        -&lt;default package&gt;
            +Env.properties     &lt;---- Here it is
        +com.mycomp.gts.test
        +com.mycomp.gts.logintest
        .....
        ....
</code></pre>

<p>Now when I am trying to find this file using code</p>

<pre><code>InputStream propertiesInputStream = getClass().getResourceAsStream("Env.properties");
ENV.load(propertiesInputStream);
</code></pre>

<p>Its throwing <code>java.lang.NullPointerException</code></p>
