boolean isWindows = System.getProperty("os.name") .toLowerCase().startsWith("windows"); System.out.println(System.getProperty("os.name"));