title: How can my Java code read OS environment variables?
body: <p>This may be a very simple problem, but I couldn't find an answer googleing and I'm in a rush - so I'd appreciate fast code examples.</p>
  
  <p>I have an environment variable on the OS I would like to read using Java code. I've tried <code>System.getProperty</code>, but that only seems to work for the <code>-D</code> variables supplied directly for the JVM.</p>
  
  <p>How can my Java code read OS variables?</p>