Get Environment Variables in Java

Tutorials Shared by the Internet Community

Advertisements


Synopsis

In Java 1.5, Sun had decided to undeprecate the getEnv() method that provides the functionality to get the value of an enviroment variable.

Statistics

  • Total Hits - 14977

  • Total Votes - 98 votes

  • Vote Up - 42 votes

  • Vote Down - 56 votes

  • Domain - blog.codebeach.com

  • Category - JAVA/JAVA Misc

  • Submitted By - Devesh Khanna

  • Submitted on - 2008-03-12 11:39:02

Description

In Java 1.5, Sun had decided to undeprecate the getEnv() method that provides the functionality to get the value of an enviroment variable. In addition, Sun has added a new method that allows you to discover all of the enviroment variables that are defined. This tutorial walks you through using both the old and new methods. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements