File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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?
 
Don't get me started about those stupid light bulbs.
 
subject: Properties vs Environment Variables (Understood)
 
Similar Threads
Passing String array as argument to main() method
doubt in chapter 6- Regex from Kathy Sierra Book
Saving a resource on a client--best practices question
General concept
What is the main usage of "String[] args" in public static void main(String[] args)?