jdk4py
A JDK shipped in a Python package.
Install
pip install jdk4py
or as a Conda package:
conda config --add channels https://conda.atoti.io
conda install jdk4py
Usage
>>> 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, 2)
>>> from subprocess import run
>>> some_java_options = ["-Xmx16G", "-Xms2G"]
>>> run(
... [JAVA, "-jar", "HelloWorld.jar", *some_java_options],
... capture_output=True,
... check=True,
... text=True,
... ).stdout.strip()
"Hello, World!"
Versioning
jdk4py's version contains 4 numbers:
- The first 3 numbers correspond to the JDK version.
- The fourth number is the library API version.
Metadata
Release files for jdk4py 25.0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| jdk4py-25.0.2.1-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details |
| jdk4py-25.0.2.1-py3-none-manylinux_2_17_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details |
| jdk4py-25.0.2.1-py3-none-manylinux_2_17_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details |
| jdk4py-25.0.2.1-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details |
| jdk4py-25.0.2.1-py3-none-macosx_10_9_x86_64.whl | Python 3 | none | macOS 10.9+ x86-64 | Details |
Total release size: 162.6 MB
Release files / jdk4py-25.0.2.1-py3-none-win_amd64.whl
| Download URL | jdk4py-25.0.2.1-py3-none-win_amd64.whl |
|---|---|
| Size | 31.0 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
5f0ad2e8f7ad3b40eef8af75062d830afd3feccca62fc03db611b2e9a5fa9824
|
|
BLAKE2b-256 checksum How to use checksums |
74424517e3d5b75f52d330acb5816c387d28d58f1689e3ab91c48639fcde3483
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","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}
|
Release files / jdk4py-25.0.2.1-py3-none-manylinux_2_17_x86_64.whl
| Download URL | jdk4py-25.0.2.1-py3-none-manylinux_2_17_x86_64.whl |
|---|---|
| Size | 35.4 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
383d71d8639d072752d2eaafc84944e0d8de7f1c45d30c28f6dfef8a4a65543c
|
|
BLAKE2b-256 checksum How to use checksums |
025ab572f441714a420d65805cbf8806d9b78a8ab70060ed251310661c0b934c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","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}
|
Release files / jdk4py-25.0.2.1-py3-none-manylinux_2_17_aarch64.whl
| Download URL | jdk4py-25.0.2.1-py3-none-manylinux_2_17_aarch64.whl |
|---|---|
| Size | 34.5 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
b7246170d605dd7b65340994fedea2615737e63955f0b95389202e0ab4a166ac
|
|
BLAKE2b-256 checksum How to use checksums |
52fee382f79e1fc1f7dfa04c4a7df765203f780590221c26ddff79a1e56aec76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","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}
|
Release files / jdk4py-25.0.2.1-py3-none-macosx_11_0_arm64.whl
| Download URL | jdk4py-25.0.2.1-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 30.1 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
eda21f14d7d56c7e1ee0f2beb55bfc19f311a8653bdb00217f0cc013c2f2c587
|
|
BLAKE2b-256 checksum How to use checksums |
95b8398b8cff51b1109cdaa424dc4e62ef60acb89e5eb8041fb16a40bc005b49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","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}
|
Release files / jdk4py-25.0.2.1-py3-none-macosx_10_9_x86_64.whl
| Download URL | jdk4py-25.0.2.1-py3-none-macosx_10_9_x86_64.whl |
|---|---|
| Size | 31.5 MB |
| Tags | Python 3 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
5df67e2f6a5277f39fb97584eb64ee8d7265770fd42425ec2f11fc4e72c82c6c
|
|
BLAKE2b-256 checksum How to use checksums |
97c33883815de1ecb3dca14f6ada6b38c6e9bb7fc7c3585b2b1924970d4d33fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","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}
|