public static boolean appleEawtAvailable() { return System.getProperty("os.name").contains("OS X"); }
public static int appleOSVersion() { if (!appleEawtAvailable()) return -1; return Integer.parseInt(System.getProperty("os.version").split("[.]")[1]); }
public static int javaVersion() { return Integer.parseInt(System.getProperty("java.specification.version").split("[.]")[1]); }