I would like to determine the operating system of the host that my Java program is running programmatically (for example: I would like to be able to load different propertie
As indicated in other answers, System.getProperty provides the raw data. However, the Apache Commons Lang component provides a wrapper for java.lang.System with handy properties like SystemUtils.IS_OS_WINDOWS, much like the aforementioned Swingx OS util.