From the
Java Doc's on Deprecation:
java.lang.System.getenv(
String)
The preferred way to extract system-dependent information is the system properties of the java.lang.System.getProperty methods and the corresponding getTypeName methods of the Boolean, Integer, and Long primitive types. For example:
<pre>
String classPath = System.getProperty("java.class.path",".");
if (Boolean.getBoolean("myapp.exper.mode"))
{
enableExpertCommands();
}
</pre>
Hope this helps
