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
Just use com.sun.javafx.util.Utils as below.
com.sun.javafx.util.Utils
if ( Utils.isWindows()){ // LOGIC HERE }
OR USE
boolean isWindows = OSInfo.getOSType().equals(OSInfo.OSType.WINDOWS); if (isWindows){ // YOUR LOGIC HERE }