openjdk

Java Development Kit builds, from Oracle

Latest version: 25.0.2

Install tool

xrepo install "openjdk 25.0.2"

Learn how to add and link packages with Xmake →

Information

License
GPL-2.0
Kind
binary
Recipe updated
2026-04-16T06:30:05.000Z

Platforms

  • linux: i386, x86_64, armv7, armv7s, arm64, mips, mips64, mipsel, mips64el, loong64, riscv64, s390x, ppc, ppc64, ppc64el, sparc64
  • msys: x86_64
  • macosx: x86_64, arm64
  • windows: x64, arm, arm64, arm64ec

Options

debug
Enable debug symbols. · Type: boolean · Default: false
shared
Download shared binaries. · Type: boolean · Default: true

Versions

  • 21.0.5
  • 21.0.10
  • 25.0.2

Dependencies

Used by (4)

Packages declaring this dependency; requirements can vary by platform and configuration.

Install with xrepo

Install the package independently of a project and inspect its available configuration.

install

xrepo install "openjdk 25.0.2"

show info

xrepo info "openjdk"

Declare a project tool

This package provides executables, not a library to link. Declare it as a requirement and use xrepo env shell from the project directory to access its environment.

xmake.lua

add_requires("openjdk 25.0.2")

project environment

xrepo env shell

Open a package environment

Open a shell with the environment exported by this package. Use the executable names documented by the package.

enter shell

xrepo env -b "openjdk 25.0.2" shell