🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Reading Environment Variable

#15282
From: Mike Weisert
Date: Tue, 22 Jun 1999 00:00
18 lines
1000 bytes
Two ways:
1) use native methods to get the env and pass it back
2) use system call to exec "set" or env and parse the stdio stream


Carole Masset wrote:

> Hello,
>
> I have not found a way to read an environment variable from java using JDK
> 1.1.6. Can anybody help?
>
> I am aware of System.getEnv but it is a deprecated API so I am currently
> trying using System.getProperty but I always get null.
>
> Thanks
>
> Carole M.
Technical Details
Message-ID: <376FBBCB.A5423F84@isi.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7kdnok$rs73@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,a908ab2ace659fb1
X-Google-Attributes: gidf74b3,public
From: Mike Weisert <mweisert@isi.com>
Subject: Re: Reading Environment Variable
Date: 1999/06/22
Message-ID: <376FBBCB.A5423F84@isi.com>
X-Deja-AN: 492569931
Content-Transfer-Encoding: 7bit
References: <7kdnok$rs73@forums.borland.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language