You can detect which os is running by using the following code:
String os = System.getProperty("os.name");
It will return something like "Windows 2000".
You can get all the properties by running the following code:
Properties props = System.getProperties();
// Enumerate all system properties
Enumeration enum = props.propertyNames();
for (; enum.hasMoreElements() ;) {
// Get property name
String propName = (String) enum.nextElement();
// Get property value
String propValue = (String) props.get(propName);
System.out.println(propName + " - " + propValue);
}
[ June 30, 2005: Message edited by: Richard Nienaber ]