So I tried to access an environment variable for the first time today;
no soap. Since System.getenv() is deprecated, I used
System.getProperty(). I couldn't get it to fetch my variable with what I
thought was the correct way:

bash$ export foo=bar
bash$ java myapp

However I can get it with:

bash$ java -Dfoo=bar myapp

What am I doing wrong here?

-- 

Paul Reavis                                      [EMAIL PROTECTED]
Design Lead
Partner Software, Inc.                        http://www.partnersoft.com

Reply via email to