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

  • You can run the following command to get that

    uname -a
    

    Having x64 in there might give you a hint.