Java examples for java.util:Properties File
is Windows via System.getProperty
//package com.java2s; public class Main { public static void main(String[] argv) throws Exception { System.out.println(isWindows()); }//from ww w . j a v a2 s .c o m public static boolean isWindows() { return System.getProperty("os.name").toLowerCase().indexOf("win") >= 0; } }