macOS
brew install openjdk@21local Homebrew formula metadata
sudo port install openjdk21MacPorts ports tree · java/openjdk21/Portfile · Source: api.github.com
brew
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de openjdk@21 pour les workflows d'agents IA.
installation
brew install openjdk@21local Homebrew formula metadata
sudo port install openjdk21MacPorts ports tree · java/openjdk21/Portfile · Source: api.github.com
sudo apt install openjdk-21-dbgDebian stable package indexes · openjdk-21-dbg · Source: deb.debian.org
sudo apk add openjdk21Alpine Linux edge package indexes · openjdk21 · Source: dl-cdn.alpinelinux.org
nix profile install nixpkgs#openjdk21nixpkgs package indexes · openjdk21 · Source: raw.githubusercontent.com
choco install openjdkChocolatey community package catalog · openjdk · Source: community.chocolatey.org
winget install --id Microsoft.OpenJDK.17 -eWindows Package Manager source index · Microsoft.OpenJDK.17 · Source: cdn.winget.microsoft.com
aperçu
Development kit for the Java programming language
Aucun alias exécutable n'a été trouvé dans la base locale des paquets.
historique
OpenJDK 21 is the open-source reference implementation of Java SE 21. It reached General Availability on 19 September 2023 and became the next major long-term-support Java line after JDK 17, with virtual threads as its headline operational feature.
JDK 21 was produced by the OpenJDK JDK Project under the same time-based release model used for earlier post-Java-9 releases. The release implements Java SE 21 as specified by JSR 396 and was tracked through the JEP process.
The feature set shows how the Java platform evolved after JDK 17: virtual threads were finalized, record patterns and pattern matching for switch were delivered, sequenced collections joined the core libraries, Generational ZGC arrived, and several Panama, Amber, Vector, and structured-concurrency features remained preview or incubator work.
The OpenJDK release page identifies JDK 21 as a long-term-support release from most vendors. That made it the natural upgrade candidate for teams already on Java 17 that wanted the newer concurrency model, pattern-matching improvements, and garbage-collector work without tracking every six-month feature release.
Virtual threads drove much of the ecosystem attention around JDK 21. The JEP describes them as lightweight threads intended to preserve the simple thread-per-request programming style while improving the scalability of high-throughput server applications, which made the release especially relevant to web frameworks, application servers, observability tools, and JVM operators.
The package supplies the complete Java 21 developer kit: compiler, runtime, packaging tools, serviceability tools, jshell, jlink, jpackage, jwebserver, signing tools, and diagnostics. Developers install it to build and run Java 21 applications, test virtual-thread workloads, target Java 21 bytecode, and keep CI environments aligned with a named LTS release.
Operators and build engineers care about openjdk@21 because it offers a pinned Java 21 toolchain independent of the unversioned latest JDK. That is useful for reproducible Maven/Gradle builds, container base images, local development shells, and production systems that certify against a particular Java release family.
OpenJDK 21 is where a package entry is more than 'the Java package': it is a versioned runtime contract. The package lets downstream formulas, buildpacks, language servers, and CI runners ask for Java 21 specifically while other software remains on Java 17 or moves to newer feature releases.
For package nerds, the interesting bit is the coexistence problem: a modern workstation or build farm may need JDK 8 for legacy code, JDK 17 for one LTS fleet, and JDK 21 for virtual-thread-capable services. Versioned OpenJDK packages make that matrix explicit.
posture de sécurité
Aucun manifest local de gestion des secrets correspondant n'a été trouvé pour openjdk@21. Les métadonnées de paquet Nucleus restent publiées ici afin que la couverture future dispose d'une URL stable.
Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.
exécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
| Aucune donnée d'exécutable n'était présente. | |||
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
https://github.com/openjdk/jdk21u
métadonnées d'installation
| Clé du paquet | brew:openjdk@21 |
|---|---|
| Version | 21.0.11 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/openjdk@21 |
| Page d'accueil | https://openjdk.org/ |
| Dépôt | https://github.com/openjdk/jdk21u |
| Docs amont | https://docs.oracle.com/en/java/javase/21 |
| Licence | GPL-2.0-only WITH Classpath-exception-2.0 |
| Archive source | https://github.com/openjdk/jdk21u/archive/refs/tags/jdk-21.0.11-ga.tar.gz |
| Dernière mise à jour | 2026-06-25T13:37:59+02:00 |
| Pulse | updated |
| Dépendances | freetype, giflib, harfbuzz, jpeg-turbo, libpng, little-cms2 |
| Dépendances de compilation | autoconf, pkgconf |
| Bouteille | disponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| post-install Homebrew | non défini |
| Service | aucun déclaré |
| Précautions | For the system Java wrappers to find this JDK, symlink it with sudo ln -sfn $HOMEBREW_PREFIX/opt/openjdk@21/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-21.jdk |
faits du registre
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | openjdk@21 |
| Version Scheme | 0 |
| Revision | 0 |
| Requirements |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | yes |
| URL Keys |
|
correspondances dans les bases sources
Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.
openjdk-21-dbg 21.0.11+10-1~deb13u2
Java runtime based on OpenJDK (debugging symbols)
sudo apt install openjdk-21-dbgopenjdk-21-demo 21.0.11+10-1~deb13u2
Java runtime based on OpenJDK (demos and examples)
sudo apt install openjdk-21-demoopenjdk-21-doc 21.0.11+10-1~deb13u2
OpenJDK Development Kit (JDK) documentation
sudo apt install openjdk-21-docopenjdk-21-jdk 21.0.11+10-1~deb13u2
OpenJDK Development Kit (JDK)
sudo apt install openjdk-21-jdkopenjdk-21-jdk-headless 21.0.11+10-1~deb13u2
OpenJDK Development Kit (JDK) (headless)
sudo apt install openjdk-21-jdk-headlessopenjdk-21-jre 21.0.11+10-1~deb13u2
OpenJDK Java runtime, using Hotspot JIT
sudo apt install openjdk-21-jreopenjdk-21-jre-headless 21.0.11+10-1~deb13u2
OpenJDK Java runtime, using Hotspot JIT (headless)
sudo apt install openjdk-21-jre-headlessopenjdk-21-jre-zero 21.0.11+10-1~deb13u2
Alternative JVM for OpenJDK, using Zero
sudo apt install openjdk-21-jre-zeroopenjdk-21-source 21.0.11+10-1~deb13u2
OpenJDK Development Kit (JDK) source files
sudo apt install openjdk-21-sourceopenjdk-21-testsupport 21.0.11+10-1~deb13u2
Java runtime based on OpenJDK (regression test support)
sudo apt install openjdk-21-testsupportopenjdk-21-dbg 21.0.3+9-1ubuntu1
Java runtime based on OpenJDK (debugging symbols)
sudo apt install openjdk-21-dbgopenjdk-21-demo 21.0.3+9-1ubuntu1
Java runtime based on OpenJDK (demos and examples)
sudo apt install openjdk-21-demoopenjdk-21-doc 21.0.3+9-1ubuntu1
OpenJDK Development Kit (JDK) documentation
sudo apt install openjdk-21-docopenjdk-21-jdk 21.0.3+9-1ubuntu1
OpenJDK Development Kit (JDK)
sudo apt install openjdk-21-jdkopenjdk-21-jdk-headless 21.0.3+9-1ubuntu1
OpenJDK Development Kit (JDK) (headless)
sudo apt install openjdk-21-jdk-headlessopenjdk-21-jre 21.0.3+9-1ubuntu1
OpenJDK Java runtime, using Hotspot JIT
sudo apt install openjdk-21-jrepiste source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.