Here’s what worked for me:
Download the ARM64 (aarch64) version – which you’ve done.
Use Terminal to verify installation:
After installing, open Terminal and run:
/usr/libexec/java_home -V
java -version
If it says command not found or throws an error, the install didn’t complete properly.
Try installing via Homebrew
:
This avoids .dmg issues entirely:
brew install openjdk@21
Then link it:
sudo ln -sfn /opt/homebrew/opt/openjdk@21/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-21.jdk
Check System Settings > Privacy & Security – If you see a block on Oracle or the JDK installer, allow it manually and retry.
As someone brushing up my Java skills, I recently enrolled in this Java Full Stack Developer course in Online
— it’s been super helpful with real-world projects and hands-on dev environment setup (especially for M1/M2 Macs). Might be worth checking out if you're doing this for learning or career growth