title: How can I get System variable value in Java?
body: <p>How can I get the System Variable value which is present in </p>
  
  <pre><code>MyComputer -&gt; Properties -&gt; Advanced -&gt; Environment Variables -&gt; System Variables
  </code></pre>
  
  <p>in Java?</p>
  
  <p><em>Edit</em></p>
  
  <p>I have used <code>System.getenv()</code> method.</p>
  
  <p>It is printing value if I give </p>
  
  <pre><code>System.out.println(System.getenv("JAVA_HOME"));
  </code></pre>
  
  <p>and it is showing <code>null</code> value if I try the same for system variable created by me </p>
  
  <pre><code>System.out.println(System.getenv("DBE"));
  </code></pre>