skillfed

install-jdk

install-jdk allows you to easily install latest Java OpenJDK version. Supports OpenJDK builds from Adoptium (previously AdoptOpenJDK), Corretto, and Zulu. Simplify your Java development with the latest OpenJDK builds.

install-jdk v1.1.0 292.8K downloads/30d#7,960 on PyPI23
Permissive license MIT Active released

What it is and what it does

install-jdk is a Python library that automates the provisioning of OpenJDK across different operating systems and CPU architectures. It wraps the download and extraction of prebuilt JDK or JRE binaries from major vendors—Adoptium (the default), Amazon Corretto, and Azul Zulu—and places them in a standard location on your system. The library detects your OS and architecture automatically, but lets you override both if needed, and supports selecting between JDK (full development kit) and JRE (runtime only) installations.

The package has no external dependencies beyond Python's standard library, making it lightweight and easy to embed in automation scripts, CI/CD pipelines, or provisioning tools. It exposes three main functions: `install()` to fetch and place a JDK or JRE, `get_download_url()` to retrieve the download link without installing, and `download()` to fetch the binary to a temporary directory. This design lets you integrate JDK provisioning into larger workflows without forcing a specific installation path or download strategy.

Use it for:

  • Automate Java environment setup in Docker containers or cloud instances during initial provisioning.
  • Provision multiple JDK versions across a development team without manual downloads or environment variable configuration.
  • Fetch a specific OpenJDK build URL for custom deployment or verification in CI/CD pipelines.
  • Support cross-platform build scripts that need to install Java on Windows, macOS, and Linux with a single code path.
  • Download a JDK to a temporary location for testing or validation without modifying system-wide Java installations.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Automates the download and installation of OpenJDK builds from multiple vendors (Adoptium, Corretto, Zulu) across Windows, macOS, Linux, and other operating systems, with automatic OS and architecture detection.

Yes, if you need to automate JDK provisioning in scripts or infrastructure code. The package is lightweight (no dependencies), actively maintained, permissively licensed, and covers the major OpenJDK vendors. Install it when you want to avoid manual JDK downloads or when you're building tooling that must work across multiple operating systems and architectures.

Install

install-jdk on PyPI

pip

pip install install-jdk

uv

uv add install-jdk

poetry

poetry add install-jdk

Installing install-jdk

Before you install

Low friction: pure Python with no third-party runtime dependencies, installs as a single wheel. Actively maintained with recent commits; last release was over a year ago but repository shows ongoing activity.

License in practice

MIT license is permissive; you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

Quickstart

pip install install-jdk

import jdk

jdk.install('11')
# Installs Java JDK 11 to $HOME/.jdk/

jdk.install('17', vendor='Corretto')
# Installs Corretto build of Java 17 JDK

Requires Python 3.6 or later; the install function downloads and extracts a JDK binary, so adequate disk space and network access are needed.

Verify before relying

  • Whether the package handles proxy settings or authentication for restricted networks during downloads.
  • Support status for Microsoft OpenJDK (listed as 'Planning' in the vendor table).
  • Whether automatic detection of OS/architecture works reliably on all supported platforms (AIX, ppc64, etc.).

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.6,<4.0)
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance actively maintained — 1,120 days since the last release
Last repo commit
First released
Downloads 292,827/month — #7,960 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: install_jdk-1.1.0-py3-none-any.whl

Keywords: Java, OpenJDK, AdoptOpenJDK, Adoptium, Corretto, Zulu, JDK, JRE

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software DevelopmentTopic :: Utilities

Tags

install java jdk automaticallyopenjdk download and setupjava development kit installeradoptium corretto zulu installcross-platform jdk provisioningautomated java environment setupjdk version manager
java-provisioningci-cd-automationcross-platform

More Software Development packages