Re: Reading Environment Variables



Brian Bagnall wrote:
...
I set up an environment variable in Windows called "NXTCOMM" and gave it a
value of "COM6". Now I'm trying to get my Java program to read the value.
....
It returns NULL when I run this program. Any ideas?

<http://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.html#getenv(java.lang.String>

[ though Google the groups for some potentially
important caveat's surrounding it's use - Sun
deprecated it for a while.. ]

Andrew T.

.