Specifications

Sun Services
Java™ Programming Language
Module 9, slide 9 of 37
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision F
The Properties Class
Here is an example test run of this program:
java -DmyProp=theValue TestProperties
Here is the (partial) output:
property ’java.version’ is ’1.5.0-rc’
property ’java.compiler’ is ’NONE’
property ’path.separator’ is ’:’
property ’file.separator’ is ’/’
property ’user.home’ is ’/home/basham’
property ’java.specification.vendor’ is ’Sun Microsystems Inc.’
property ’user.language’ is ’en’
property ’user.name’ is ’basham’
property ’myProp’ is ’theValue’