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");
|