Re: Reading Environment Variables
- From: "Andrew Thompson" <andrewthommo@xxxxxxxxx>
- Date: 3 Sep 2006 12:33:28 -0700
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.
.
- Follow-Ups:
- Re: Reading Environment Variables
- From: Brian Bagnall
- Re: Reading Environment Variables
- References:
- Reading Environment Variables
- From: Brian Bagnall
- Reading Environment Variables
- Prev by Date: Reading Environment Variables
- Next by Date: Re: Maximum Java Source Size
- Previous by thread: Reading Environment Variables
- Next by thread: Re: Reading Environment Variables
- Index(es):
Relevant Pages
|