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
If you're interested in how an open source project does stuff like this, you can check out the Terracotta class (Os.java) that handles this junk here:
And you can see a similar class to handle JVM versions (Vm.java and VmVersion.java) here: