Skip to main content

jdk4py

PyPI Python License

A JDK shipped in a Python package.

Install

pip install jdk4py

or

uv add jdk4py

Usage

Command line

The jdk4py command runs a tool of the bundled JDK, such as java, keytool, or jcmd. With uvx, it runs without installing jdk4py first:

uvx jdk4py java -version

Python API

>>> from jdk4py import JAVA, JAVA_HOME, JAVA_VERSION
>>> JAVA_HOME
PosixPath('/Users/johndoe/dev/jdk4py/jdk4py/java-runtime')
>>> JAVA
PosixPath('/Users/johndoe/dev/jdk4py/jdk4py/java-runtime/bin/java')
>>> JAVA_VERSION
(25, 0, 5)
>>> from subprocess import run
>>> some_java_options = ["-Xmx16G", "-Xms2G"]
>>> run(
...     [JAVA, *some_java_options, "-jar", "HelloWorld.jar"],
...     capture_output=True,
...     check=True,
...     text=True,
... ).stdout.strip()
'Hello, World'

Versioning

jdk4py's version contains 4 numbers:

  • The first 3 numbers are the first 3 numbers of the bundled JDK version. JAVA_VERSION holds them.
  • The fourth number starts at 0 and goes up by 1 with each release that keeps the first 3, for instance to bundle a JDK patch or to change the library.

Metadata

Release files for jdk4py 25.0.5.1

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

Built distributions (wheels)

Table of built distributions (wheels) for jdk4py 25.0.5.1
File Actions
jdk4py-25.0.5.1-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for jdk4py-25.0.5.1-py3-none-win_amd64.whl
jdk4py-25.0.5.1-py3-none-manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for jdk4py-25.0.5.1-py3-none-manylinux_2_17_x86_64.whl
jdk4py-25.0.5.1-py3-none-manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for jdk4py-25.0.5.1-py3-none-manylinux_2_17_aarch64.whl
jdk4py-25.0.5.1-py3-none-macosx_11_0_x86_64.whl Python 3 none macOS 11.0+ x86-64 Details for jdk4py-25.0.5.1-py3-none-macosx_11_0_x86_64.whl
jdk4py-25.0.5.1-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for jdk4py-25.0.5.1-py3-none-macosx_11_0_arm64.whl

Total release size: 162.9 MB

Release files / jdk4py-25.0.5.1-py3-none-win_amd64.whl

Download URL jdk4py-25.0.5.1-py3-none-win_amd64.whl
Size 31.1 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
faeb2e188e003a67c0b91a17a00f95ae0cf0e2f0803892d1e44c410eca0a08db
BLAKE2b-256 checksum
How to use checksums
ca144baef08289d39b90bf31229b194b517c46e4b50dc5037ce54fa23db5fbb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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 Nov 20, 2026.

Transparency log

Release files / jdk4py-25.0.5.1-py3-none-manylinux_2_17_x86_64.whl

Download URL jdk4py-25.0.5.1-py3-none-manylinux_2_17_x86_64.whl
Size 35.7 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
b989b35d24f704cb40b402a82003d131056bf2b9794c33acb84bf42b5ebffd34
BLAKE2b-256 checksum
How to use checksums
6b7f6647eb46d22167085af910f11776630f3027f67447104b857054bfb769b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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 Nov 20, 2026.

Transparency log

Release files / jdk4py-25.0.5.1-py3-none-manylinux_2_17_aarch64.whl

Download URL jdk4py-25.0.5.1-py3-none-manylinux_2_17_aarch64.whl
Size 34.7 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
c301be7519ab32b10b40fe8b541167dce2e3ea19d575af236d86932cdabf0d94
BLAKE2b-256 checksum
How to use checksums
2163b62fcdbc1a186330c45beb60ba0db4ec827a387eb850b0c42b90503938f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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 Nov 20, 2026.

Transparency log

Release files / jdk4py-25.0.5.1-py3-none-macosx_11_0_x86_64.whl

Download URL jdk4py-25.0.5.1-py3-none-macosx_11_0_x86_64.whl
Size 31.4 MB
Tags Python 3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
b128a1d959a8d0a5b24502d672655af0e80ebf57565c1c7786c5be2a675e5d72
BLAKE2b-256 checksum
How to use checksums
b5c10188ec35a603662272274da2644b3601c1c9aa5c266e18c5bccbdd25bf4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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 Nov 20, 2026.

Transparency log

Release files / jdk4py-25.0.5.1-py3-none-macosx_11_0_arm64.whl

Download URL jdk4py-25.0.5.1-py3-none-macosx_11_0_arm64.whl
Size 30.0 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
13a20f55a743fc5cc211980915549f63c68830d188a16e79eb1e68eee107bca2
BLAKE2b-256 checksum
How to use checksums
e1d4d997fc7a5d82878016d6fedae66e4cd9a7013f195ff92625ad719656c73d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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 Nov 20, 2026.

Transparency log

Security for jdk4py 25.0.5.1

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.

Full provenance

All 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for jdk4py-25.0.5.1-py3-none-win_amd64.whl

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 Nov 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

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