Microsoft Build of OpenJDK 21
Microsoft · A Microsoft distribution of OpenJDK 21 for macOS, installed as a JDK package.
brew install --cask microsoft-openjdk@21- 30-day installs
- 281
- #614 in App
- 1-year installs
- 2.3K
- Last 365 days
- Latest version
- 21.0.13.1
- Download size
- 200MB
- pkg
- Release cadence
- Irregular
- 1 release in 30 days
About
Microsoft Build of OpenJDK is Microsoft’s distribution of OpenJDK. This Homebrew cask installs the microsoft-openjdk@21 variant as a macOS JDK package.
- The cask is for the OpenJDK 21 line; it is not a separate runtime-only package.
- Homebrew provides installer packages for Apple Silicon (
aarch64) and Intel (x64) Macs. - Installation uses a macOS package installer. The cask also defines package-based uninstall behavior.
Install with Homebrew Cask:
brew install --cask microsoft-openjdk@21
After installation, use the JDK from your macOS development environment or command line as needed. The cask targets macOS; no minimum macOS version is specified.
Sources: Homebrew cask definition · Microsoft OpenJDK
At a glance
- Chip
- Apple silicon · Intel
- Auto-updates
- No
- Developer
- Microsoft
- Homebrew
- Available; updated by Homebrew
- Also known as
- Microsoft Build of OpenJDK, microsoft-openjdk@21
- Homepage
- microsoft.com/openjdk
- Token
- microsoft-openjdk@21
Checked
How to install Microsoft Build of OpenJDK 21 on Mac
Homebrew runs the microsoft-jdk-21.0.13.1-macos-aarch64.pkg installer, which asks for an administrator password.
Install without Homebrew
Download the file Homebrew uses for your chip: Install Details
Uninstall Microsoft Build of OpenJDK 21 and optional data cleanup
brew uninstall --cask microsoft-openjdk@21A regular uninstall removes the app and keeps its settings and caches.
Deep clean (optional)
brew uninstall --zap --cask microsoft-openjdk@21--zap also deletes the settings, caches and other files listed in the Homebrew definition. They can include data shared with other apps and cannot be restored, and it does not guarantee that nothing is left. Back up any data you need first. To keep settings and caches, leave out --zap.
Questions about Microsoft Build of OpenJDK 21
Is Microsoft Build of OpenJDK 21 safe?
Microsoft Build of OpenJDK 21 is in Homebrew’s official catalog and has not been disabled. Since September 2026, Homebrew disables apps that fail macOS Gatekeeper checks. When installing, Homebrew checks the download from aka.ms against its SHA-256 checksum. It was installed 281 times through Homebrew in the last 30 days.
How do I completely uninstall Microsoft Build of OpenJDK 21 on a Mac?
Run brew uninstall --cask microsoft-openjdk@21. It forgets 1 installer receipt. To delete its settings and caches as well, run brew uninstall --zap --cask microsoft-openjdk@21. --zap also deletes the settings, caches and other files listed in the Homebrew definition. They can include data shared with other apps and cannot be restored, and it does not guarantee that nothing is left. Back up any data you need first. To keep settings and caches, leave out --zap. That also deletes 2 files and folders, including ~/.
Does Microsoft Build of OpenJDK 21 run on Apple silicon (M1 and later) Macs?
Yes. Homebrew downloads separate builds for Apple silicon and Intel Macs.
Where does Microsoft Build of OpenJDK 21 store its settings and data?
Its settings are in ~/. These locations come from Homebrew’s clean-up list.
What is the latest version of Microsoft Build of OpenJDK 21?
The latest version is 21.0.13.1, added to Homebrew on Nov 18, 2026. Run brew upgrade --cask microsoft-openjdk@21 to update it.
What else does installing Microsoft Build of OpenJDK 21 add?
It installs through a .pkg installer, which asks for an administrator password.
Similar Apps
- Oracle Java Standard Edition Development Kit 25Oracle’s JDK for developing, debugging, and monitoring Java applications on macOS.
- Microsoft Build of OpenJDKMicrosoft’s OpenJDK distribution, installed on macOS as a JDK package.
- Azul Zulu Java Standard Edition Development KitAzul’s OpenJDK distribution for developing and running Java applications, supplied as a macOS JDK with command-line tools.
- GraalVM Java Development KitOracle’s GraalVM JDK for macOS, with the Graal just-in-time compiler and support for building Java applications as native executables.