🍺 BREW Explorer

← all formulae

openjdk

brew install openjdk v26.0.1 GPL-2.0-only WITH Classpath-exception-2.0 keg-only

Java development kit and runtime (JDK) compiler, JVM, and standard library.

Why you might care

OpenJDK is the open-source reference implementation of Java, providing a complete development environment for building and running Java applications. Install this if you need a JDK for compilation and development; it's keg-only because macOS includes its own JVM, but this formula gives you explicit version control and is often required by build tools and other formulae.

Categories

Alternatives

Java GraalVM Eclipse Temurin Amazon Corretto
67.4k
30-day installs · #83
167.9k
90-day · #126
804.5k
365-day · #77

Runtime dependencies

Build dependencies

Links

Caveats

For the system Java wrappers to find this JDK, symlink it with
  sudo ln -sfn $HOMEBREW_PREFIX/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk

Keg-only reason

:shadowed_by_macos

Blurb generated by claude-haiku-4-5 on today.

Raw metadata
{
  "aliases": [
    "java",
    "openjdk@26"
  ],
  "alternatives": [
    "Java",
    "GraalVM",
    "Eclipse Temurin",
    "Amazon Corretto"
  ],
  "build_dependencies": [
    "autoconf",
    "pkgconf"
  ],
  "categories": [
    "language-runtime",
    "compiler"
  ],
  "caveats": "For the system Java wrappers to find this JDK, symlink it with\n  sudo ln -sfn $HOMEBREW_PREFIX/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk\n",
  "conflicts_with": [],
  "dependencies": [
    "freetype",
    "giflib",
    "harfbuzz",
    "jpeg-turbo",
    "libpng",
    "little-cms2"
  ],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Development kit for the Java programming language",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:40:38+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "openjdk",
  "github_default_branch": null,
  "github_last_commit_at": null,
  "github_readme_excerpt": null,
  "github_repo": null,
  "github_stars": null,
  "github_topics": [],
  "homepage": "https://openjdk.org/",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": "OpenJDK",
  "installs_30d": 67381,
  "installs_365d": 804538,
  "installs_90d": 167905,
  "keg_only": 1,
  "keg_only_reason": ":shadowed_by_macos",
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "GPL-2.0-only WITH Classpath-exception-2.0",
  "llm_generated_at": "2026-06-20T23:42:36+00:00",
  "llm_model": "claude-haiku-4-5",
  "name": "openjdk",
  "oldnames": [],
  "one_liner": "Java development kit and runtime (JDK) compiler, JVM, and standard library.",
  "optional_dependencies": [],
  "rank_30d": 83,
  "rank_365d": 77,
  "rank_90d": 126,
  "raw_hash": "a26ee448951663bf",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/o/openjdk.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [
    "cups",
    "unzip",
    "zip"
  ],
  "version_head": null,
  "version_stable": "26.0.1",
  "versioned_formulae": [
    "openjdk@25",
    "openjdk@21",
    "openjdk@17",
    "openjdk@11",
    "openjdk@8"
  ],
  "why_use_this": "OpenJDK is the open-source reference implementation of Java, providing a complete development environment for building and running Java applications. Install this if you need a JDK for compilation and development; it\u0027s keg-only because macOS includes its own JVM, but this formula gives you explicit version control and is often required by build tools and other formulae."
}