Here you can find the source of isUnix()
public static boolean isUnix()
//package com.java2s; //License from project: Open Source License import java.io.File; public class Main { public static boolean isUnix() { return (File.separatorChar == '/') || isMacOsX(); }//ww w.ja va 2 s .c o m public static boolean isMacOsX() { boolean underMac = false; String osName = System.getProperty("os.name"); if (osName.startsWith("Mac OS")) { underMac = true; } return underMac; } }