Re: Accessing Environment Variables

Patrick Niemeyer <[email protected]> Sat, 12 Feb 2005 23:31:16 -0600
Newsgroups gmane.comp.java.beanshell.devel
Message-ID <[email protected]>
On Feb 12, 2005, at 8:54 PM, Nicholas Smith wrote:

> Is there some way to access the environment variables from BeanShell?
> If not, is it possible to access the deprecated System.getenv method?

You can certainly access the System.getenv() method, just as you can 
access any ordinary Java method in BeanShell.

Also, just FYI, the System.getenv() and System.getenv( name ) methods 
are no longer deprecated (they have apparently gotten a reprieve).

So don't feel guilty using them ;)


Pat



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click