--- id: install-jdk version: "1.1.0" license: MIT license_treatment: permissive maintenance: active --- # 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. License: permissive · Maintenance: active · Downloads: 292.8K/mo ## 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 above — 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 pip install install-jdk uv add install-jdk 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_current - Install friction: low - Maintenance: active - Downloads: 292.8K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags install java jdk automatically, openjdk download and setup, java development kit installer, adoptium corretto zulu install, cross-platform jdk provisioning, automated java environment setup, jdk version manager, java-provisioning, ci-cd-automation, cross-platform [View on SkillFed](https://skillfed.io/packages/install-jdk) · [View on PyPI](https://pypi.org/project/install-jdk/)