Search code examples
javamacoscorretto

How to know if mac platform is macOSx64 or macOSaarch64


I am trying to download JDK from Amazon Corretto https://docs.aws.amazon.com/corretto/latest/corretto-11-ug/downloads-list.html. There are 2 download links for macOS (macOSx64 or macOSaarch64) but I am not sure which one should be downloaded. I am using macOS Monterey Version 12.0.1


Solution

  • This is based on Comment from @sarat above.

    To determine whether your macOS platform is macOSx64 (Intel-based) or macOSaarch64 (Apple Silicon-based), you can use the uname command, which provides system information, including the architecture of the processor.

    1. Open the Terminal on your macOS machine.

    2. Run the following command:

      uname -m
      
    3. Interpret the output:

      • If the output is x86_64, your system is running on an Intel 64-bit processor (i.e., macOSx64).
      • If the output is arm64, your system is running on an Apple Silicon processor (i.e., macOSaarch64).

    Example:

    • Intel-based Mac (macOSx64):

      uname -m
      

      Output:

      x86_64
      
    • Apple Silicon-based Mac (macOSaarch64):

      uname -m
      

      Output:

      arm64
      

    Summary:

    • macOSx64: If uname -m returns x86_64, you're on an Intel-based Mac (64-bit).
    • macOSaarch64: If uname -m returns arm64, you're on an Apple Silicon-based Mac (ARM 64-bit).

    This method gives you a clear way to determine the architecture of your macOS system.