System.getenv("TEST_HOME") is returning null
<p>I am working on a ubuntu 14.0.4 machine.</p>
<p>I exported a variable TEST_HOME in my <code>.bashrc</code> file using</p>
<pre><code>export TEST_HOME=/home/dev/code/test
</code></pre>
<p>When I tried <code>echo $TEST_HOME</code> from terminal, it returned <code>/home/dev/code/test</code></p>
<p>So far, so good.</p>
<blockquote>
<p><strong>When I try from Java code :</strong></p>
<p><code>String value = System.getenv(&quot;TEST_HOME&quot;);</code></p>
<p><code>value</code> is null.</p>
</blockquote>
<p>Am I missing something here?</p>