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
From the Apple icon menu, choose About This Mac.
Look for the item Chip.
If that item says M1, M2, M3, M4, or M5, then you have a Mac with Apple Silicon based on the ARM AArch64 architecture. Download your macOSaarch64 option.
If that item says Intel, then you have the x64 chip architecture. Download your macOSx64 option.
[
]
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.
You can run the following command to get that
uname -a
Having x64 in there might give you a hint.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With