Re: Accessing Environment Variables
Don Schwarz <[email protected]> Sun, 13 Feb 2005 13:09:23 -0500
| Newsgroups | gmane.comp.java.beanshell.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 13 Feb 2005 10:49:43 -0600, Nicholas Smith <[email protected]> wrote: > On Sat, 2005-02-12 at 23:31 -0600, Patrick Niemeyer wrote: > >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? > > > >Also, just FYI, the System.getenv() and System.getenv( name ) methods > >are no longer deprecated (they have apparently gotten a reprieve). > > > java.lang.Error: getenv no longer supported, use properties instead: > PATH at java.lang.System.getenv(java.lang.String) > The getenv() methods are back in Java 1.5. Java 1.3 and 1.4 will throw this exception. ------------------------------------------------------- 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