title: Not able to get WebSphere environment variable in Java
body: <p>I've set the environment variable under <code>Application servers &gt; server1 &gt; Process definition &gt; Environment Entries</code></p>
  
  <p>My Property name is region and value in dev.</p>
  
  <p>I'm reading this property value like below:</p>
  
  <pre><code>String environment= System.getProperty("region");
  </code></pre>
  
  <p>But I'm getting null, what I'm doing wrong here? I tried to set the variable under this path as well: This also returning null - how can I read the environment variable in Java?</p>
  
  <pre><code>Environment &gt; WebSphere Variables
  </code></pre>
  
  <p>I'm using WebSphere version 8.0.0.3</p>