Here you can find the source of is64BitJVM()
true
if 64-bit support detected, false
otherwise
public static boolean is64BitJVM()
//package com.java2s; public class Main { private static volatile boolean IS_64_BITNESS_KNOWN; private static volatile boolean IS_64_BIT_JVM; /**/*from w ww .j a va2s . c o m*/ * Takes an educated guess as to whether 64 bits are supported by the JVM. * @return <code>true</code> if 64-bit support detected, <code>false</code> otherwise */ public static boolean is64BitJVM() { if (!IS_64_BITNESS_KNOWN) { String arch = System.getProperty("os.arch"); String sunModel = System.getProperty("sun.arch.data.model"); IS_64_BIT_JVM = "amd64".equals(arch) || "x86_64".equals(arch) || "ppc64".equals(arch) || "64".equals(sunModel); IS_64_BITNESS_KNOWN = true; } return IS_64_BIT_JVM; } }