Join AllAdvantage.com
About this banner

WEBrewery


Tip #6: Retrieving System Properties

An applet can read a number of system properties from whatever system its running on. These include:
  • java.version
  • java.vendor
  • java.vendor.url
  • java.class.version
  • os.name
  • os.arch
  • os.version
  • file.separator
  • path.separator
  • line.separator
The names are pretty self-explanatory. Here is an example of how to retrieve the operating system name:

     String prop = System.getProperty("os.name");


For Beginners | Jargon | General Tips | Swing | Books | Links | WEBrewery.com

Java is a trademark of Sun Microsystems.

Copyright © 1999 WEBrewery. All rights reserved.
Reproduction in whole or in part in any form or medium without
the express written permission of WEBrewery is prohibited.
brewer@webrewery.com