Here you can find the source of is64BitJavaOnMac()
public static boolean is64BitJavaOnMac()
//package com.java2s; //License from project: Open Source License public class Main { /**/*from www. j av a 2s . c o m*/ * True if this JVM is running 64 bit Java on a Mac. * * @return true if this JVM is running 64 bit Java on a Mac. */ public static boolean is64BitJavaOnMac() { return isMac() && System.getProperty("os.arch").equals("x86_64"); } /** * True if this JVM is running on a Mac. * * @return true if this JVM is running on a Mac. */ public static boolean isMac() { return System.getProperty("os.name").startsWith("Mac OS"); } }