java get environment variable
The getenv() method of the java.lang.System provide us the functionality to get the environment variable value. To get the single environment variables value we have to call the getenv("environment variable") method where environment variable is a value that we want to evaluate. Here is the simple example of getting environment variable "WINDIR".
Here is the full code of GetEnvironmentVariable.java as follows:
Environment Variable are =>C:\WINNT
Posted on: October 24, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles