This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Posted by Kishori Sharan on September 14, 2000 at 10:38 PM
Hi You have to use System.getProperty ( String propertyname ) method to get the value of environment variable. For example to get the classpath you can useString classpath = System.getProperty ( "java.class.path" ) ;