🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2543

Re: how to get a properties from the environment

#2543
From: Joi Ellis
Date: Wed, 18 Oct 2000 00:00
29 lines
1859 bytes
(crosspost removed)
In borland.public.jbuilder.java.api sky field <skyfield@gmx.de> wrote:
> hi,
> I would like to know how to get properties from the environment, like
> JAVA_HOME=...
> I tried to use:  String getProperty(String key)

See System.getProperty(key) in the javadoc.  Some environment information
is made available to applications, including java.home, user.home, etc.
On unix, the Jbuilder4 startup script supports copying selected 
environment variables into the JVM's system properties with the copyenv 
function of the shell script.  Thus, something like TEMP could become 
available through System.getProperty("borland.copyenv.TEMP"), as I read it.
Look around in your scripts/config files and see if there isn't something
similar.

You could certainly do this sort of thing yourself, it would only require
you to write a wrapper around your java invocation to create the -D parameters
required.


-- 
Joi Ellis                    Software Engineer
Aravox Technologies          joi@aravox.com, gyles19@visi.com

No matter what we think of Linux versus FreeBSD, etc., the one thing I
really like about Linux is that it has Microsoft worried.  Anything
that kicks a monopoly in the pants has got to be good for something.
           - Chris Johnson
Technical Details
Message-ID: <8ski7e$jse3@bornews.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <39edbb05_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,3b8c76d4e167cebf
X-Google-Attributes: gid1089d0,public
From: Joi Ellis <joi@joi.aravox.com>
Subject: Re: how to get a properties from the environment
Date: 2000/10/18
Message-ID: <8ski7e$jse3@bornews.borland.com>
X-Deja-AN: 682949439
References: <39edbb05_2@dnews>
Supersedes: <8ski37$jse2@bornews.borland.com>
Organization: Another Netscape Collabra Server User
User-Agent: tin/1.4.2-20000205 ("Possession") (UNIX) (Linux/2.2.14-5.0 (i686))
Newsgroups: borland.public.jbuilder.java.api