Skip to main content

Packaged JDK for Python

Project description

jdk4py

A packaged JDK for Python.

PyPI version

Install

Java is made easy to install as a single Python package:

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, 2)
>>> from subprocess import check_output
>>> some_java_options = ["-Xmx16G", "-Xms2G"]
>>> check_output([str(JAVA), "-jar", "HelloWorld.jar",  *some_java_options])
b"Hello, World!"

Versioning

jdk4py's version contains 4 numbers:

  • The first 3 numbers are the Java version.
  • The fourth is jdk4py specific: it starts at 0 for each Java version and then increases.

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

If you're not sure about the file name format, learn more about wheel file names.

jdk4py-21.0.2.1-0-py3-none-win_amd64.whl (38.6 MB view details)

Uploaded Python 3Windows x86-64

jdk4py-21.0.2.1-0-py3-none-manylinux1_x86_64.whl (43.1 MB view details)

Uploaded Python 3

jdk4py-21.0.2.1-0-py3-none-macosx_11_0_arm64.whl (38.6 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

jdk4py-21.0.2.1-0-py3-none-macosx_10_9_x86_64.whl (39.8 MB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

Details for the file jdk4py-21.0.2.1-0-py3-none-win_amd64.whl.

File metadata

  • Download URL: jdk4py-21.0.2.1-0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 38.6 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for jdk4py-21.0.2.1-0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 6b789026f338ce87975cf903ef5d171aed550a7a85277a6fd71933960515bc3c
MD5 5f276ea19e80eca950449bce0d5ce8db
BLAKE2b-256 550f559081bd0ffdde9b3bb75a167d77f162a65d737efe6882127031419c568b

See more details on using hashes here.

File details

Details for the file jdk4py-21.0.2.1-0-py3-none-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for jdk4py-21.0.2.1-0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 89319c56ec55d960991ef3f74c159cdcb6d7ccc56a19ef7a10824d7f35011596
MD5 5ec7a3c929a7c4cbb4ba42ba8718dcdd
BLAKE2b-256 4f93535b7302d0d0eb99cffcb906f1ed2bc521ff6d19435eda313254678724c6

See more details on using hashes here.

File details

Details for the file jdk4py-21.0.2.1-0-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for jdk4py-21.0.2.1-0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5f1ffaa5ac619c27af2371c0803affb7bd68a6c5941797c2be6641f7598ab634
MD5 c081c593e560ef1b8f3d63f9c87e268d
BLAKE2b-256 60c2c0bf27768f7e0de49aac23fb3d38b7cd7d9350707eb9cf87be8728960f4a

See more details on using hashes here.

File details

Details for the file jdk4py-21.0.2.1-0-py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for jdk4py-21.0.2.1-0-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8409f2614c5b1d919397d43b810a17cb9704cac706918173b91f9381e31e3e4d
MD5 81b32572cc8db14c057904a48554f403
BLAKE2b-256 d2f3c9b1b7feb6b43fba7be0f7cb35ddd6f3b1990ea093412708f0d50b5bd8c0

See more details on using hashes here.

Supported by

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