🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #19802

Re: java.lang.System question

#19802
From: Andrew Bennett
Date: Thu, 18 Dec 1997 00:00
24 lines
1294 bytes


Rekha Venkatesh wrote:

>         does anybody know how to get the value for an environment variable?. I am
> looking fro an equivalent on "getenv(String)" method. In java.lang.System
> class there is a "getenv" method, but is deprecated. There is no
> information on what the alternate method is. Any help is appreciated.

JavaSoft nuked it due to a cross-platform issue.

They only way around it is to use the -D parameter to java.exe and
create a property read with getProperty().




Andrew
--
  Andrew Bennett            ->  abennett@borland.com
  JBuilder info             ->  http://www.borland.com/jbuilder/
  JBuilder newsgroups info  ->  http://www.borland.com/newsgroups/
**** Please don't post a reply AND send email.  Do one.  I'll see it. ****
Technical Details
Message-ID: <349987AF.F91BB4@borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <01bd0bd7$c7931020$18d812c7@rvenkatesh>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,3e047e373ac2b1f6
X-Google-Attributes: gidf74b3,public
From: Andrew Bennett <abennett@borland.com>
Subject: Re: java.lang.System question
Date: 1997/12/18
Message-ID: <349987AF.F91BB4@borland.com>
X-Deja-AN: 299433909
Content-Transfer-Encoding: 7bit
References: <01bd0bd7$c7931020$18d812c7@rvenkatesh>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Organization: None
Newsgroups: borland.public.jbuilder.java.language