# Install openjdk@11 with Homebrew, winget, apk, chocolatey, MacPorts, Nix, zypper

Development kit for the Java programming language. Version 11.0.31 via Homebrew; verified 2026-06-25.

## Install

```sh
sudo av install brew:openjdk@11
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install openjdk@11
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install openjdk11
```

  Evidence: MacPorts ports tree: java/openjdk11/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add openjdk11
```

  Evidence: Alpine Linux edge package indexes: openjdk11 from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#openjdk11
```

  Evidence: nixpkgs package indexes: openjdk11 from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- zypper (92%):

```sh
sudo zypper install pack200
```

  Evidence: openSUSE Tumbleweed package metadata: pack200 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- winget (92%):

```sh
winget install --id Microsoft.OpenJDK.11 -e
```

  Evidence: Windows Package Manager source index: Microsoft.OpenJDK.11 from https://cdn.winget.microsoft.com/cache/source.msix

- Chocolatey (92%):

```sh
choco install openjdk11
```

  Evidence: Chocolatey community package catalog: openjdk11 from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','office365homepremium'

## Package facts

- **Package key:** brew:openjdk@11
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/openjdk@11>
- **Version:** 11.0.31
- **Source summary:** Development kit for the Java programming language
- **Homepage:** <https://openjdk.org/>
- **Repository:** <https://github.com/openjdk/jdk11u>
- **Upstream docs:** <https://docs.oracle.com/en/java/javase/11>
- **License:** GPL-2.0-only
- **Source archive:** <https://github.com/openjdk/jdk11u/archive/refs/tags/jdk-11.0.31-ga.tar.gz>
- **Last updated:** 2026-06-25T13:37:59+02:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- jjs (cli)
- pack200 (cli)
- rmic (cli)
- rmid (cli)
- unpack200 (cli)
- jjs (alias)
- pack200 (alias)
- rmic (alias)
- rmid (alias)
- unpack200 (alias)

## Dependencies

- freetype
- giflib
- harfbuzz
- jpeg-turbo
- libpng
- little-cms2

## Build dependencies

- autoconf
- pkgconf

## Install behavior

- Post-install hook: not defined
- Caveats: For the system Java wrappers to find this JDK, symlink it with sudo ln -sfn $HOMEBREW_PREFIX/opt/openjdk@11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 11.0.31
- Package-manager updated: 2026-06-25
- Local data: ok
- Upstream repository: https://github.com/openjdk/jdk11u
- info: No cached GitHub release or tag data was available.
## Project history and usage

openjdk@11 packages the JDK 11 release line of OpenJDK. It exists because Java users often need a specific long-term-support-era toolchain rather than the newest feature release, especially for applications, build plugins, and enterprise stacks certified against Java 11.

### Project history

The OpenJDK JDK 11 page describes JDK 11 as the open-source reference implementation of version 11 of the Java SE Platform, specified by JSR 384. JDK 11 reached General Availability on 25 September 2018.

JDK 11 was part of the release-model transition that followed JDK 9. OpenJDK moved to six-month feature releases, while vendors designated selected lines for longer support. JEP 14 names JDK 11 among the vendor-designated LTS lines, alongside 8, 17, and 21.

### Adoption history

JDK 11 became a major migration target because it was the first broadly adopted LTS line after Java 8. Its feature list includes standard HTTP Client, Flight Recorder, TLS 1.3, launch of single-file source-code programs, Epsilon, experimental ZGC, and the removal of Java EE and CORBA modules, making it both a modernization release and a compatibility checkpoint.

The OpenJDK 11 Updates project maintains the post-GA update stream through separate jdk11u-dev and jdk11u repositories. The repository README explains that jdk11u-dev is where updates are continuously developed and jdk11u is used during rampdown for critical changes needed in the next update release.

### How it is used

Developers install openjdk@11 when a project requires Java 11 language and API behavior, tests against that release line, or cannot yet move to newer LTS lines. Build tools and CI images often pin this package so compilation, bytecode level, and runtime behavior remain stable across machines.

The Homebrew formula is keg-only and tells users how to symlink the JDK bundle into /Library/Java/JavaVirtualMachines as openjdk-11.jdk. That keeps Java 11 available without forcing it to override Homebrew's general openjdk formula.

### Why package nerds care

openjdk@11 is the package-manager expression of Java's long-tail compatibility problem. It is not a fork of OpenJDK; it is a pinned major release line with its own update repositories, compatibility expectations, and coexistence rules beside newer JDKs.

### Timeline

- 2018-09-25: JDK 11 reached General Availability.
- 2018: the OpenJDK tip-and-tail release model placed JDK 11 in the era of six-month feature releases and vendor-maintained LTS lines.
- JDK 11 Updates split routine development into jdk11u-dev and rampdown-critical work into jdk11u.

### Related projects

- openjdk@11 is related to OpenJDK, the JDK 11 Updates project, downstream Java 11 distributions, enterprise application servers, build tools that pin source or target compatibility to 11, and newer LTS lines such as OpenJDK 17 and 21.

### Sources

- <https://formulae.brew.sh/formula/openjdk@11>
- <https://github.com/openjdk/jdk11u>
- <https://openjdk.org/jeps/14>
- <https://openjdk.org/jeps/322>
- <https://openjdk.org/projects/jdk/11/>


## Security Notes

No matching local secret-handling manifest was found for openjdk@11. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** openjdk@11
- **Aliases:** java11
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** yes
- **Disabled:** no
- **Keg Only:** yes
- **URL Keys:** stable

## Other Package-Manager Records

- winget - Microsoft.OpenJDK.11: normalized package name match | Windows Package Manager source index: Microsoft.OpenJDK.11 from https://cdn.winget.microsoft.com/cache/source.msix
- winget - ojdkbuild.openjdk.11.jdk: normalized package name match | Windows Package Manager source index: ojdkbuild.openjdk.11.jdk from https://cdn.winget.microsoft.com/cache/source.msix
- MacPorts - openjdk11: package manager index match | MacPorts ports tree: java/openjdk11/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Nix - openjdk11: package manager index match | nixpkgs package indexes: openjdk11 from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- apk - openjdk11 - 11.0.31_p11-r0: package manager index match | Alpine Linux edge package indexes: openjdk11 from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Oracle OpenJDK 11 | https://github.com/openjdk/jdk11u
- apk - openjdk11-demos - 11.0.31_p11-r0: package manager index match | Alpine Linux edge package indexes: openjdk11-demos from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Oracle OpenJDK 11 (demos) | https://github.com/openjdk/jdk11u
- apk - openjdk11-doc - 11.0.31_p11-r0: package manager index match | Alpine Linux edge package indexes: openjdk11-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Oracle OpenJDK 11 (Documentation) | https://github.com/openjdk/jdk11u
- apk - openjdk11-jdk - 11.0.31_p11-r0: package manager index match | Alpine Linux edge package indexes: openjdk11-jdk from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Oracle OpenJDK 11 (JDK) (server) | https://github.com/openjdk/jdk11u
- apk - openjdk11-jmods - 11.0.31_p11-r0: package manager index match | Alpine Linux edge package indexes: openjdk11-jmods from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Oracle OpenJDK 11 (jmods) | https://github.com/openjdk/jdk11u
- apk - openjdk11-jre - 11.0.31_p11-r0: package manager index match | Alpine Linux edge package indexes: openjdk11-jre from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Oracle OpenJDK 11 (JRE) | https://github.com/openjdk/jdk11u
- apk - openjdk11-jre-headless - 11.0.31_p11-r0: package manager index match | Alpine Linux edge package indexes: openjdk11-jre-headless from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Oracle OpenJDK 11 (JRE headless) | https://github.com/openjdk/jdk11u
- apk - openjdk11-src - 11.0.31_p11-r0: package manager index match | Alpine Linux edge package indexes: openjdk11-src from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Oracle OpenJDK 11 (sources) | https://github.com/openjdk/jdk11u
- zypper - pack200 - 14-3.3: installed executable or alias match | openSUSE Tumbleweed package metadata: pack200 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Pack200 compression for JAR files | https://github.com/pack200/pack200
- zypper - pack200-javadoc - 14-3.3: installed executable or alias match | openSUSE Tumbleweed package metadata: pack200-javadoc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Javadoc for pack200 | https://github.com/pack200/pack200
- Chocolatey - openjdk11: package manager index match | Chocolatey community package catalog: openjdk11 from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','office365homepremium'
- Nix - openjdk: versioned package alias match | nixpkgs package indexes: openjdk from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix


## Related links

- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [freetype](https://www.automicvault.com/pkg/brew/freetype/) - Runtime dependency declared by Homebrew.
- [giflib](https://www.automicvault.com/pkg/brew/giflib/) - Runtime dependency declared by Homebrew.
- [harfbuzz](https://www.automicvault.com/pkg/brew/harfbuzz/) - Runtime dependency declared by Homebrew.
- [jpeg-turbo](https://www.automicvault.com/pkg/brew/jpeg-turbo/) - Runtime dependency declared by Homebrew.
- [libpng](https://www.automicvault.com/pkg/brew/libpng/) - Runtime dependency declared by Homebrew.
- [little-cms2](https://www.automicvault.com/pkg/brew/little-cms2/) - Runtime dependency declared by Homebrew.
- [autoconf](https://www.automicvault.com/pkg/brew/autoconf/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [alluxio](https://www.automicvault.com/pkg/brew/alluxio/) - Popular package that depends on this formula.
- [benerator](https://www.automicvault.com/pkg/brew/benerator/) - Popular package that depends on this formula.
- [digdag](https://www.automicvault.com/pkg/brew/digdag/) - Popular package that depends on this formula.
- [opentsdb](https://www.automicvault.com/pkg/brew/opentsdb/) - Popular package that depends on this formula.
- [redpen](https://www.automicvault.com/pkg/brew/redpen/) - Popular package that depends on this formula.
- [swagger2markup-cli](https://www.automicvault.com/pkg/brew/swagger2markup-cli/) - Popular package that depends on this formula.
- [openjdk](https://www.automicvault.com/pkg/brew/openjdk/) - Package name indicates the same formula family.
- [openjdk@17](https://www.automicvault.com/pkg/brew/openjdk-17/) - Package name indicates the same formula family.
- [openjdk@21](https://www.automicvault.com/pkg/brew/openjdk-21/) - Package name indicates the same formula family.
- [openjdk@25](https://www.automicvault.com/pkg/brew/openjdk-25/) - Package name indicates the same formula family.
- [openjdk@8](https://www.automicvault.com/pkg/brew/openjdk-8/) - Package name indicates the same formula family.

## Combined YAML source

View the package source record on GitHub. [combined/openjdk@11.yml](https://github.com/automic-vault/db/blob/main/combined/openjdk@11.yml)


## Sources

- Nucleus package database
- package-page enrichment
- curated package history
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
