Java JVM is 64 Bit is64BitJavaOnMac()

Here you can find the source of is64BitJavaOnMac()

Description

True if this JVM is running 64 bit Java on a Mac.

License

Open Source License

Return

true if this JVM is running 64 bit Java on a Mac.

Declaration

public static boolean is64BitJavaOnMac() 

Method Source Code

//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");
    }
}

Related

  1. is64Bit()
  2. is64Bit()
  3. is64Bit()
  4. is64Bit()
  5. is64Bit()
  6. is64BitJavaOnMac()
  7. is64BitJre()
  8. is64bitJVM()
  9. is64BitJVM()