Here you can find the source of isOsUnix()
public static boolean isOsUnix()
//package com.java2s; import java.io.File; public class Main { private static final String FORWARD_SLASH = "/"; /**/*from w w w .j a v a2 s . c o m*/ * Test for Unix (to include MacOS), vice Windows. */ public static boolean isOsUnix() { return File.separator.equals(FORWARD_SLASH); } }