What replaces System.getenv()


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: What replaces System.getenv()

  1. #1
    Jim Maguire Guest

    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.

    Any help???

  2. #2
    Paul Clapham Guest

    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 <jim.maguire@sasipos.com> wrote in message
    news:398ac679$1@news.devx.com...
    >
    > 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???




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center