Skip to main content

A JDK shipped in a Python package

Project description

jdk4py

A JDK shipped in a Python package.

PyPI version

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
(21, 0, 4)
>>> from subprocess import check_output
>>> some_java_options = ["-Xmx16G", "-Xms2G"]
>>> check_output([JAVA, "-jar", "HelloWorld.jar",  *some_java_options])
b"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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

jdk4py-21.0.4.1-py3-none-win_amd64.whl (29.8 MB view details)

Uploaded Python 3 Windows x86-64

jdk4py-21.0.4.1-py3-none-manylinux_2_17_x86_64.whl (33.9 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ x86-64

jdk4py-21.0.4.1-py3-none-manylinux_2_17_aarch64.whl (33.3 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

jdk4py-21.0.4.1-py3-none-macosx_11_0_arm64.whl (29.8 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

jdk4py-21.0.4.1-py3-none-macosx_10_9_x86_64.whl (31.1 MB view details)

Uploaded Python 3 macOS 10.9+ x86-64

File details

Details for the file jdk4py-21.0.4.1-py3-none-win_amd64.whl.

File metadata

  • Download URL: jdk4py-21.0.4.1-py3-none-win_amd64.whl
  • Upload date:
  • Size: 29.8 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for jdk4py-21.0.4.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 b81d689623f24a9241f50258d0994f7e9c8630c892ae0d5f5fe8b91ac8349845
MD5 8f3534e56dfcaecae8e3e8af0a6d6f30
BLAKE2b-256 7a78e3f43b290641ac3fc3849b7935d966e764e609c7f99f0fafd76e73cb2dee

See more details on using hashes here.

File details

Details for the file jdk4py-21.0.4.1-py3-none-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for jdk4py-21.0.4.1-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 0604994e2baf94eeb4a788dafadaa1c8593aa474d3e4d7e7f1dd69c3524908f7
MD5 099bd33c1fb287b8ddfbccb12b95c59c
BLAKE2b-256 0a64130e4a1f65ebbbd33f01e46eb13eadb4642ea6c4e38ae82b19d8eed955ea

See more details on using hashes here.

File details

Details for the file jdk4py-21.0.4.1-py3-none-manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for jdk4py-21.0.4.1-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 7d6dc78001a7a1852b2da2be4702468419675bf58122d55928ee000990a46b56
MD5 6a6f35004aaa2bf695795898a6e73bbb
BLAKE2b-256 9bc056d384441a4ead0f96d0dfd731c151643c69f1ab5242f140c2a88d3cfb4f

See more details on using hashes here.

File details

Details for the file jdk4py-21.0.4.1-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for jdk4py-21.0.4.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0efda61573596c05c53554dc7ca73748b3ba17f4817519f0a1e14e6c92e75be0
MD5 eecd1b3c855d508ffeeddc982a3c171b
BLAKE2b-256 53b57c809f68ada3a1a5a859528c3f5e1dc7044145c9d6a50bb5fe6b5fb271c4

See more details on using hashes here.

File details

Details for the file jdk4py-21.0.4.1-py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for jdk4py-21.0.4.1-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 786888fe44811ddf8788bf6e454119e4b5d820a167e3ec9fa2098f4e07d5420f
MD5 df988c688297d8e1d65417c81574eb9a
BLAKE2b-256 8ca9a006ca3b5839fc095a9cfa6b0dae4dafd42b358f897c5054ea286187a823

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page