title: Can we read the OS environment variables in Java?
body: <p>My OS is windows7. I want to read the environment variables in my Java application. I have searched google and many people's answer is to use the method   <code>System.getProperty(String name)</code> or    <code>System.getenv(String name)</code>. But it doesn't seem to work. Through the method, I can read some variable's value that defined in the JVM. </p>
  
  <p>If I set an environment variable named "Config", with value "some config information", how can I get the value in Java?</p>