Packaged JDK for Python
Project description
jdk4py
A packaged JDK for Python.
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
Release history Release notifications | RSS feed
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
Close
Hashes for jdk4py-21.0.2.1-0-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b789026f338ce87975cf903ef5d171aed550a7a85277a6fd71933960515bc3c |
|
MD5 | 5f276ea19e80eca950449bce0d5ce8db |
|
BLAKE2b-256 | 550f559081bd0ffdde9b3bb75a167d77f162a65d737efe6882127031419c568b |
Close
Hashes for jdk4py-21.0.2.1-0-py3-none-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89319c56ec55d960991ef3f74c159cdcb6d7ccc56a19ef7a10824d7f35011596 |
|
MD5 | 5ec7a3c929a7c4cbb4ba42ba8718dcdd |
|
BLAKE2b-256 | 4f93535b7302d0d0eb99cffcb906f1ed2bc521ff6d19435eda313254678724c6 |
Close
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 |
Close
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 |