# Install openjdk with Homebrew

Development kit for the Java programming language. Version 26.0.2 via Homebrew; verified 2026-07-27.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install openjdk
```

  Evidence: provider-native install command

## Package facts

- **Package key:** brew:openjdk
- **Package manager:** Homebrew
- **Version:** 26.0.2
- **Source summary:** Development kit for the Java programming language
- **Homepage:** <https://openjdk.org/>
- **Repository:** <https://github.com/openjdk/jdk26u>
- **Last updated:** 2026-07-27T15:13:27Z
- **Generated:** 2026-08-03T00:40:33+00:00

## Executables

- jar (alias)
- jarsigner (alias)
- java (alias)
- javac (alias)
- javadoc (alias)
- javap (alias)
- jcmd (alias)
- jconsole (alias)
- jdb (alias)
- jdeprscan (alias)
- jdeps (alias)
- jfr (alias)
- jhsdb (alias)
- jimage (alias)
- jinfo (alias)
- jlink (alias)
- jmap (alias)
- jmod (alias)
- jnativescan (alias)
- jpackage (alias)
- jps (alias)
- jshell (alias)
- jstack (alias)
- jstat (alias)
- jstatd (alias)
- jwebserver (alias)
- keytool (alias)
- rmiregistry (alias)
- serialver (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 26.0.2
## Project history and usage

OpenJDK is the open-source implementation community for the Java Platform, Standard Edition, and the upstream source base from which many Java Development Kit distributions are built. The Homebrew openjdk formula packages the general JDK toolchain: java, javac, jar, javadoc, jshell, jlink, jpackage, jcmd, jfr, keytool, and many diagnostic utilities.

### Project history

OpenJDK began from Sun Microsystems' 2006 initiative to open source Java and the core Java platform. Red Hat's historical account says the major platform components were released over the next few years as free and open-source software under the GPL.

After Sun's acquisition by Oracle, OpenJDK continued as the central upstream for Java SE implementation work. The OpenJDK homepage describes it as the place to collaborate on an open-source implementation of Java SE and related projects, while the JDK Project describes its goal as producing a series of open-source reference implementations of the Java SE Platform.

### Adoption history

OpenJDK became the shared upstream for a multi-vendor Java ecosystem. Oracle, Red Hat, IBM, Microsoft, Amazon, Azul, SAP, and other vendors build or support JDK distributions derived from the OpenJDK code base, while the OpenJDK Community develops language, VM, library, tooling, and platform features through projects and JEPs.

The release model changed after JDK 9. OpenJDK's JDK Project documents a six-month feature-release cadence, and JEP 14 describes the tip-and-tail model: frequent feature releases at the tip, quarterly update releases in tail trains, and vendor-designated long-term support lines such as JDK 8, 11, 17, and 21.

### How it is used

Developers install OpenJDK when they need the Java compiler, runtime, standard libraries, build tools, documentation tools, packaging tools, and diagnostics needed to build and run Java software. Operators often install it indirectly because build systems, language servers, CI jobs, application servers, Android-adjacent tooling, and JVM languages all expect a JDK on PATH or discoverable through platform Java wrappers.

On macOS, Homebrew marks openjdk as keg-only and documents the symlink needed for /usr/libexec/java_home and other system Java wrappers to find the JDK bundle. That detail is a classic Java-packaging issue: package managers can install many JDKs, but tools need a policy for which one wins.

### Why package nerds care

OpenJDK is one of the most consequential packages in a package manager because it is both a developer-facing SDK and a build-time dependency for other packages. It also carries a distinctive license shape, GPLv2 with the Classpath Exception, which lets the JDK remain copyleft while supporting broad Java application distribution.

### Timeline

- 2006: Sun Microsystems announced the initiative that led to OpenJDK.
- 2007: Red Hat signed Sun's OpenJDK contributor and TCK agreements, becoming a major outside participant in the project.
- 2018: the OpenJDK Community adopted the six-month tip-and-tail release model beginning with JDK 10.
- The JDK Project release list records JDK 11 general availability on 25 September 2018 and subsequent feature releases on a six-month cadence.

### Related projects

- OpenJDK is related to HotSpot, javac, Project Amber, Project Loom, Project Panama, Project Valhalla, OpenJDK update projects, Eclipse OpenJ9, and downstream distributions such as Oracle OpenJDK builds, Red Hat OpenJDK builds, Microsoft Build of OpenJDK, Amazon Corretto, Azul Zulu, SAP SapMachine, and Eclipse Temurin.

### Sources

- <https://formulae.brew.sh/formula/openjdk>
- <https://openjdk.org/>
- <https://openjdk.org/jeps/14>
- <https://openjdk.org/legal/gplv2+ce.html>
- <https://openjdk.org/projects/jdk/>
- <https://www.redhat.com/en/blog/history-and-future-openjdk>


## Security Notes

Java runtime and development kit.

- **Geiger risk:** yellow / high
- Java runtime and development kit


## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
