Paul Reavis wrote: > 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? > > -- nothing! System properties != environment variables... If you want to have access to an environment variable from with a application, invoke java this way (for example, the ABC variable) java -DABC=$ABC classname...
begin:vcard n:Trussart;Vincent x-mozilla-html:TRUE org:Université de Montréal adr: version:2.1 email;internet:[EMAIL PROTECTED] note:ICQ# 4357910 x-mozilla-cpt:;-28736 fn:Vincent Trussart end:vcard