# Microsoft Build of OpenJDK 21

A Microsoft distribution of OpenJDK 21 for macOS, installed as a JDK package.

> This is the Markdown version of the Microsoft Build of OpenJDK 21 page on OpenNavo, with the same facts as the web page: <https://opennavo.com/apps/microsoft-openjdk@21>

- **Latest version**: `21.0.13.1`
- **Developer**: Microsoft
- **Homepage**: <https://microsoft.com/openjdk>
- **Categories**: [Languages & Runtimes](https://opennavo.com/categories/languages)
- **Install**: `brew install --cask microsoft-openjdk@21`
- **30-day installs**: 281
- **Homebrew**: Available; updated by Homebrew
- **Download URL**: <https://aka.ms/download-jdk/microsoft-jdk-21.0.13.1-macos-aarch64.pkg>
- **SHA-256**: `d2f673fbc9ff6223d466948fc5b6f30c46747a2e60a3d4021cf412e1fb1f2cbd`
- **Installer packages**: microsoft-jdk-21.0.13.1-macos-aarch64.pkg

SHA-256 only checks that the download is complete; it is not a security certification.

## Installation and removal contents

```json
[
  {
    "declaration": {
      "uninstall": [
        {
          "pkgutil": "com.microsoft.21.jdk"
        }
      ]
    },
    "phase": "uninstall",
    "sources": [],
    "type": "uninstall"
  },
  {
    "declaration": {
      "pkg": [
        "microsoft-jdk-21.0.13.1-macos-aarch64.pkg"
      ]
    },
    "phase": "install",
    "sources": [
      "microsoft-jdk-21.0.13.1-macos-aarch64.pkg"
    ],
    "type": "pkg"
  },
  {
    "declaration": {
      "zap": [
        {
          "trash": [
            "~/Library/Preferences/net.java.openjdk.java.plist",
            "~/Library/Saved Application State/net.java.openjdk.java.savedState"
          ]
        }
      ]
    },
    "phase": "cleanup",
    "sources": [],
    "type": "zap"
  }
]
```

## 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:

```sh
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](https://raw.githubusercontent.com/Homebrew/homebrew-cask/HEAD/Casks/m/microsoft-openjdk@21.rb) · [Microsoft OpenJDK](https://microsoft.com/openjdk)

## System requirements

- Build for macOS 27, 26, 15, 14, 13, 12, 11 · Version: 21.0.13.1 · Intel · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/m/microsoft-openjdk@21.rb> · Checked 2026-11-28
  - <https://aka.ms/download-jdk/microsoft-jdk-21.0.13.1-macos-x64.pkg>
  - SHA-256: `ef997941308c050a7f99e06572e8ac4ff3a21414a9182091d399e1441a5061e6`
- Build for macOS 27, 26, 15, 14, 13, 12, 11 · Version: 21.0.13.1 · Apple silicon · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/m/microsoft-openjdk@21.rb> · Checked 2026-11-28
  - <https://aka.ms/download-jdk/microsoft-jdk-21.0.13.1-macos-aarch64.pkg>
  - SHA-256: `d2f673fbc9ff6223d466948fc5b6f30c46747a2e60a3d4021cf412e1fb1f2cbd`

## Uninstall

- `brew uninstall --cask microsoft-openjdk@21`

A regular uninstall removes the app and keeps its settings and caches.

### Uninstalling also removes

- Installer receipts (pkgutil): `com.microsoft.21.jdk` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/m/microsoft-openjdk@21.rb> · These entries come from the Homebrew definition, checked 2026-11-28. They say what it declares, not what is on your Mac.

### 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`.

A regular uninstall removes the app and keeps its settings and caches.

- Files and folders: `~/Library/Preferences/net.java.openjdk.java.plist` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/m/microsoft-openjdk@21.rb> · These entries come from the Homebrew definition, checked 2026-11-28. They say what it declares, not what is on your Mac.
- Files and folders: `~/Library/Saved Application State/net.java.openjdk.java.savedState` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/m/microsoft-openjdk@21.rb> · These entries come from the Homebrew definition, checked 2026-11-28. They say what it declares, not what is on your Mac.

## Facts and sources

- <https://opennavo.com/apps/microsoft-openjdk@21>
- <https://opennavo.com/apps/microsoft-openjdk@21/versions>
- <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/m/microsoft-openjdk@21.rb> · Checked 2026-11-28
- <https://formulae.brew.sh/cask/microsoft-openjdk@21>
