Article View: borland.public.jbuilder.java.language
Article #17023Re: Environment Variable
From: Carlos Antonio Ruiz G�mez
Date: Mon, 28 Dec 1998 00:00
Date: Mon, 28 Dec 1998 00:00
34 lines
1305 bytes
1305 bytes
There is a recommendation to read environment variables as system
properties:
When invoking JVM put the variable as a property:
java -Dvariable="value" ... (or jre)
In the java program you can read the value with
String value = System.getProperty("variable");
You can't write environment variables.
---
Carlos Antonio Ruiz G�mez
cruiz@americatel.net.co
Arumugam escribi� en mensaje <36848F16.7C03E5BA@kbo.mss.co.jp>...
Hi,
Can anyone tell me how to read and write the environment variable in
JAVA.
Is there any class available.?
Can I know the function name.?
Thanks in advance
with Regards
Arumugam
--
B. Arumugam
Mitsubishi Space Software, JAPAN.
Phone ; +81-467-47-6708
E-Mail : arumugam@kbo.mss.co.jp
Technical Details
Message-ID:
<768lks$nod8@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36848F16.7C03E5BA@kbo.mss.co.jp>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f74b3,7fa13fd8250143d6 X-Google-Attributes: gidf74b3,public From: "Carlos Antonio Ruiz G�mez" <cruiz@americatel.net.co> Subject: Re: Environment Variable Date: 1998/12/28 Message-ID: <768lks$nod8@forums.borland.com> X-Deja-AN: 426524326 References: <36848F16.7C03E5BA@kbo.mss.co.jp> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language