The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
September 2000

Advertisement

Advertisement

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 Artima Forums.

Message:

RE:Environment variables

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 use
String classpath = System.getProperty ( "java.class.path" ) ;

Thanx
Kishori




Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us