How to read an Environment variable from Java code
<p>I have a properties file that needs to be loaded into a java program. Part of the path is defined by the system environment variable <code>JAVA_TOP</code>. When i give the full path it recognizes the file. Otherwise it won't. I tried giving file path as:</p>

<pre><code>&lt;JAVA_TOP&gt;/abc.... 
$JAVA_TOP/abc...
JAVA_TOP/abc
</code></pre>

<p>None of them seem to work. Please let me know how to read the environment variable <code>JAVA_TOP</code> from the java application.</p>