This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
A JVM runs with a number of system properties. You can configure system properties by using the -D option, pronounced with an upper case 'D'
All you have to do i suse the -D flag, and provide the system prperty name immediately following the D, and equals sign, and then the value to be assigned to the property. For example, to set the file.encoding property of the Java runtime to utf-8, you could set the following property:
You can then grab the value programatically as follows:
System.getProperty("file.encoding"); /*this method is overloaded, as per previous post*/