🍺 BREW Explorer

← all formulae

openjdk@17

brew install openjdk@17 v17.0.19 GPL-2.0-only WITH Classpath-exception-2.0 keg-only

Java Development Kit (JDK) 17 — compiler, runtime, and standard library for building and running Java applications.

Why you might care

Install this if you need to compile or run Java 17 code; it's the official open-source JDK with long-term support. Keg-only formula allows coexistence with other Java versions (openjdk@11, openjdk@21, etc.). Commonly required as a build or runtime dependency for projects targeting Java 17.

Categories

Alternatives

openjdk@11 openjdk@21 adoptopenjdk eclipse-temurin
27.8k
30-day installs · #196
88.7k
90-day · #195
365.0k
365-day · #185

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@17/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-17.jdk

Keg-only reason

:versioned_formula

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

Raw metadata
{
  "aliases": [],
  "alternatives": [
    "openjdk@11",
    "openjdk@21",
    "adoptopenjdk",
    "eclipse-temurin"
  ],
  "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@17/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-17.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:44+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "openjdk@17",
  "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": 27809,
  "installs_365d": 364962,
  "installs_90d": 88739,
  "keg_only": 1,
  "keg_only_reason": ":versioned_formula",
  "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:43:19+00:00",
  "llm_model": "claude-haiku-4-5",
  "name": "openjdk@17",
  "oldnames": [],
  "one_liner": "Java Development Kit (JDK) 17 \u2014 compiler, runtime, and standard library for building and running Java applications.",
  "optional_dependencies": [],
  "rank_30d": 196,
  "rank_365d": 185,
  "rank_90d": 195,
  "raw_hash": "3dc0b52d473de846",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/o/openjdk@17.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [
    "cups",
    "unzip",
    "zip"
  ],
  "version_head": null,
  "version_stable": "17.0.19",
  "versioned_formulae": [
    "openjdk@25",
    "openjdk@21",
    "openjdk@11",
    "openjdk@8"
  ],
  "why_use_this": "Install this if you need to compile or run Java 17 code; it\u0027s the official open-source JDK with long-term support. Keg-only formula allows coexistence with other Java versions (openjdk@11, openjdk@21, etc.). Commonly required as a build or runtime dependency for projects targeting Java 17."
}