Java Utililty Methods JVM is 64 Bit

List of utility methods to do JVM is 64 Bit

Description

The list of methods to do JVM is 64 Bit are organized into topic(s).

Method

booleanis64Bit()
is Bit
boolean result;
if (System.getProperty("os.name").contains("Windows")) {
    result = (System.getenv("ProgramFiles(x86)") != null);
} else {
    result = (System.getProperty("os.arch").contains("64"));
return result;
booleanis64Bit()
is Bit
return System.getProperty("sun.arch.data.model").contains("64");
booleanis64Bit()
is Bit
return osArch.contains("64");
booleanis64Bit()
is Bit
for (String prop : PROPERTIES_64) {
    String value = System.getProperty(prop);
    if (value != null && value.indexOf("64") >= 0) {
        return true;
return false;
Booleanis64Bit()
is Bit
Boolean is64bit = null;
if (isWindows()) {
    is64bit = (System.getenv("ProgramFiles(x86)") != null);
} else {
    is64bit = (System.getProperty("os.arch").indexOf("64") != -1);
return is64bit;
booleanis64Bit()
Find out if application is running on 64bit java.
return "64".equals(System.getProperty("sun.arch.data.model"));
booleanis64Bit()
is Bit
Integer bitCount = getBitCount();
return (bitCount != null) && (bitCount == 64);
booleanis64Bit()
is Bit
if (isWindows()) {
    return (System.getenv("ProgramFiles(x86)") != null);
} else {
    return (System.getProperty("os.arch").indexOf("64") != -1);
booleanis64Bit()
is Bit
return System.getProperty("os.arch").indexOf("64") != -1
        || System.getProperty("sun.arch.data.model").indexOf("64") != -1;
booleanis64BitJavaOnMac()
True if this JVM is running 64 bit Java on a Mac.
return isMac() && System.getProperty("os.arch").equals("x86_64");