How to know if mac platform is macOSx64 or macOSaarch64
Asked Answered
R

3

10

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

Roup answered 8/7, 2022 at 5:11 Comment(6)
Usually, menubar > about this mac should show you everything neededDissenter
You need to provide more information on your device. "macOSaarch64" is an Arm processor, whereas "macOSx64" will be an intel processorClassless
Did you try to google this?Sanderlin
I did, but I do not find a clear answer.Roup
@zatef FYI, the inventors of Stack Overflow intended these Questions here to be the top results of a web search. The existence of other sources of info outside Stack Overflow does not disqualify a Question here, as long as the Question is on-topic.Unlace
Thanks @BasilBourque I dont remember the context around asking the OP to google this. But, yea, you are correct.Sanderlin
F
9

You can run the following command to get that

uname -a

Having x64 in there might give you a hint.

Fridell answered 19/3 at 4:59 Comment(2)
➜ ~ uname -a //Darwin MacBook-Pro-2.local 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000 arm64Judicature
uname -m is a better solution if you want to use it in a script as it directly gives you the architecture instead of you needing to parse it from a long stringIonosphere
U
16

About This Mac

  1. From the Apple icon menu, choose About This Mac.

  2. Look for the item Chip.

  3. If that item says M1 or M2 or M3, then you have a Mac with Apple Silicon based on the ARM AArch64 architecture. Download your macOSaarch64 option.

  4. If that item says Intel, then you have the x64 chip architecture. Download your macOSx64 option.

[screenshot of About This Mac]

See Apple support page, Mac computers with Apple silicon.


Bonus tip: SDKMAN! is a clever utility that makes it quite easy to find, download, install, and uninstall a JDK.

SDKMAN! only lists JDK products from vendors who volunteer their product info. As I recall, that includes Amazon and their Corretto offerings.

Unlace answered 8/7, 2022 at 5:21 Comment(0)
F
9

You can run the following command to get that

uname -a

Having x64 in there might give you a hint.

Fridell answered 19/3 at 4:59 Comment(2)
➜ ~ uname -a //Darwin MacBook-Pro-2.local 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000 arm64Judicature
uname -m is a better solution if you want to use it in a script as it directly gives you the architecture instead of you needing to parse it from a long stringIonosphere
K
3

If your computer is one of the new M1 or M2 chip computers, then you would use macOSaarch64.

If your computer is an older Intel chip computer, then you would use macOSx64.

You can tell which you have by going to Apple menu and then selecting 'About This Mac' and Look for 'Processor' or 'Chip' in the About This Mac window.

Kissel answered 8/7, 2022 at 5:22 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.