This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv 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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Properties vs Environment Variables (Understood)" Watch "Properties vs Environment Variables (Understood)" New topic

Properties vs Environment Variables (Understood)

Shridhar Raghavan
Ranch Hand

Joined: May 27, 2010
Posts: 71

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.

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:
subject: Properties vs Environment Variables (Understood)
It's not a secret anymore!