Skip to main content

cjdk

cjdk (for "cached JDK") is a Python package and command-line tool to download and run JDK (Java Development Kit) or JRE (Java Runtime Environment) distributions.

Previously used JDKs are kept in the user's cache directory, so that future invocations do not require a download.

What for

  • Installing exact JDK versions for reproducible testing
  • Working with multiple versions of JDKs
  • Deploying tools that require Java

Using the command-line interface of cjdk, you can run Java programs using a one-liner, without having to worry about whether the user has installed a new enough Java runtime and set JAVA_HOME and PATH to appropriate values.

For example, the following command will run Checkstyle using Temurin JRE 17 (which will be downloaded if this is the first time it is requested):

cjdk --jdk=temurin-jre:11 exec java -jar checkstyle-10.3-all.jar -c style.xml MyApp.java

See the documentation for detailed usage.

cjdk was inspired by Coursier's java command, and uses Coursier's JDK index). Unlike Coursier, cjdk does not require a Java runtime to bootstrap.

Installing

cjdk requires Python 3.10.

pip install cjdk

Documentation

Licensing

cjdk is distributed under the MIT license. Please see LICENSE.txt.

Metadata

Release files for cjdk 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cjdk 0.5.0
File Size Uploaded
cjdk-0.5.0.tar.gz 144.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cjdk 0.5.0
File Interpreter ABI Platform
cjdk-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 171.8 kB

Release files / cjdk-0.5.0.tar.gz

Download URL cjdk-0.5.0.tar.gz
Size 144.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c83bdb06749a2cdee8e0c9ca1612e10b629286a0a48115ecc2e892e072d5315a
BLAKE2b-256 checksum
How to use checksums
121b9203dbc890918e65b3917b1c0715cccdc8a4cd13f56ed12dca0727f8007f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 7, 2026.

Transparency log

Release files / cjdk-0.5.0-py3-none-any.whl

Download URL cjdk-0.5.0-py3-none-any.whl
Size 27.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e4c563afe9fe9e2841c734b5919bb6e31f371220a1cf23a037642d7ccad59b03
BLAKE2b-256 checksum
How to use checksums
b6fed8d293c0d88ee6e1d6882039e577d20282535baa45bfa9525f709ebd26a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 7, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page