ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@m64.com>
Subject RE: Access environment variables
Date Tue, 17 Oct 2000 13:58:56 GMT
Peter,

Have you really tried this?

I did

F:\Projects\JakartaSSH\test\build>java test CLASSPATH
Exception in thread "main" java.lang.Error: getenv no longer supported, use
properties and -D instead: CLASSPATH
        at java.lang.System.getenv(System.java:634)
        at test.main(test.java:3)

As for using JNI, it would hardly seem to be worth the effort over the effor
to use a wrapper script.

Cheers
Conor


> -----Original Message-----
> From: Peter Breitling [mailto:breitlip@informatik.tu-muenchen.de]
> Sent: Wednesday, 18 October 2000 2:42
> To: ant-user@jakarta.apache.org
> Subject: Re: Access environment variables
>
>
>
>
> sdeva wrote:
> > I guess there is no direct way to access environment in java.
>
> Yes, there is: It is just to trivial via System.getenv("J2EE_HOME").
>
> Still wonder why...
>
> --
> Peter Breitling
> _________________________________________________________________
> 				http://www.in.tum.de/~breitlip


Mime
View raw message