• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get value of environment variable

 
Harish Bohara
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have defined a environment variable LOG_PATH in windows. Can anyone tell me how to get the value of these variables.

Thanks
 
Sunil Kumar Gupta
Ranch Hand
Posts: 824
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check this

http://java.sun.com/developer/JDCTechTips/2001/tt1204.html


 
zhong hb
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jdk1.5 provide System.getenv(String key);
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!