ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Better way to provide ENV vars to Java.exe?
Date Wed, 29 Nov 2000 09:12:39 GMT
KC Baltz <> wrote:

> We have a Java .class that expects an environment variable to be set
> (not a system property, no such luck)

How so? How are they doing that (accessing the environment variable)?
Are they willing to contribute the code to Ant? 8-)

Seriously, I don't know any way - without falling back to native
methods or external scripts - to access environment variables from
within Java for any JDK > 1.0. System.getEnv will throw an Exception


View raw message