Can i check my own environment variable from java code ? Thanks in advance! ------------------ "Sun Certified Java Programmer" KS "Failing to plan is like plannig to fail!"
Test 094, IBM WID 6.0 cert
SCJP 1.2
SCBCD 1.3 Beta
SCWCD 1.4 Beta
SCMAD Beta
SCDJWS Beta
KS
You can use the System.getProperties method. Of course it will only get Java and general stuff. Anything TOO related to the operating system is not available in this.
[This message has been edited by Cindy Glass (edited March 05, 2001).]
"JavaRanch, where the deer and the Certified play" - David O'Meara
Hi, U can also do it indirectly by using Runtime.exec. You can execute the cmd.exe (in NT) or command.com (Win 9x). You can capture the output of DOS command env using a Reader and then extract the info. from that. Madhesh