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
You can run the following command to get that
uname -a
Having x64 in there might give you a hint.
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 string –
Ionosphere About This Mac
From the Apple icon menu, choose
About This Mac
.Look for the item
Chip
.If that item says
M1
orM2
orM3
, then you have a Mac with Apple Silicon based on the ARM AArch64 architecture. Download yourmacOSaarch64
option.If that item says
Intel
, then you have the x64 chip architecture. Download yourmacOSx64
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.
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 string –
Ionosphere 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.
© 2022 - 2024 — McMap. All rights reserved.
menubar > about this mac
should show you everything needed – Dissenter