Java tutorial
//package com.java2s; import java.util.Properties; public class Main { public static boolean isMacOs() { Properties prop = System.getProperties(); String os = prop.getProperty("os.name"); // log.info("platform is:"+os); if (os.equals("Mac OS X")) { return true; } return false; } }