Here you can find the source of isUnix()
public static boolean isUnix()
//package com.java2s; import java.io.File; public class Main { public static boolean isUnix() { return "/".equals(File.separator); }// w ww . j a v a 2 s. co m }