Re: how to access Windows Environment variable using java?

Niclas Hedhman <[email protected]>
Newsgroups gmane.comp.java.sun.rmi
Organization Private
Message-ID <[email protected]>
On Friday 22 April 2005 14:12, Christopher De Vries wrote:
> On Fri, Apr 22, 2005 at 04:32:59PM +0530, Prasad kadbane wrote:
> >             I need to access windows environment variable "windir"
> > which contains windows directory. Does any body knows how to access
> > via java code..
>
> System.getenv("windir") will access the windir environment variable.

This is fairly off topic...
But anyway, the above doesn't work on JDK1.4 (at least not Linux), but it was
re-introduced in JDK1.5.

We have a rather full utility at;

https://scm.dpml.net/repos/dpml/development/main/transit/core/handler/src/main/net/dpml/transit/Environment.java


Cheers
Niclas

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff RMI-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".

For a list of frequently asked RMI questions please refer to:
http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html

To view past RMI-USERS postings, please see:
http://archives.java.sun.com/archives/rmi-users.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.