This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Properties vs Environment Variables (Understood) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Properties vs Environment Variables (Understood)" Watch "Properties vs Environment Variables (Understood)" New topic
Author

Properties vs Environment Variables (Understood)

Shridhar Raghavan
Ranch Hand

Joined: May 27, 2010
Posts: 71

http://download.oracle.com/javase/tutorial/essential/environment/properties.html

The link above to Sun's Java Doc explains a property object as "configuration tool while designing applications". That is to quote "an application capable of downloading files might use a property named "download.lastDirectory" to keep track of the directory used for the last download." Here the map "download.lastDirectory" serves as a configuration tool for some application.

http://download.oracle.com/javase/tutorial/essential/environment/env.html

The link above explains an environment variable as something the OS maintains to pass info to the instance of the invoked application.

The only question i have in mind is if i can create my own ENVIRONMENT VARIABLES, how are the two different concepts different in terms of usability?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Properties vs Environment Variables (Understood)