What replaces System.getenv()
I've been looking at System.getProperty() but can't figure out how to get
an environment variable.
Ideally, I'd like to read a registry key. I'm using J++ on NT.
Re: What replaces System.getenv()
Registry keys are not the same as environment variables. Environment
variables date from the DOS days (DOS 2 copied them from UNIX) and are
simple things like TEMP=c:\windows\temp. If you look in the file
C:\autoexec.bat you will probably see some environment variables being set.
The registry is a Windows 95 concept, tree-structured and much more complex.
J++ may have some Microsoft-specific class for reading registry keys, but
having never used it I couldn't tell you what that might be.
Jim Maguire <email@example.com> wrote in message
> I've been looking at System.getProperty() but can't figure out how to get
> an environment variable.
> Ideally, I'd like to read a registry key. I'm using J++ on NT.
> Any help???
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL