This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
gcj: accessing environment variables
- From: erik poupaert <erik dot poupaert at chello dot be>
- To: java at gcc dot gnu dot org
- Date: 30 Apr 2003 19:24:21 +0200
- Subject: gcj: accessing environment variables
- Organization:
I was going to read an environment variable MYPERSONALENVVAR and I tried
to access its value with System.getenv(), until I discovered that
System.getenv() throws a "deprecated" exception, and that I should use
System.getProperty() instead.
Then I tried to read System.getProperty("MYPERSONALENVVAR"), just to get
a null in return.
Does anybody know how I can get hold of environment variables in gcj?