* please keep the notes below as a pseudo-license * helper class to check the operating system this Java VM runs in I have added pointers to current source code in the code below and offer an approach for handling the check with an enum as an answer so that a switch statement can be used when evaluating the result: OsCheck.OSType ostype=OsCheck.getOperatingSystemType()
Some of the links in the answers above seem to be broken.