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 pip library:

pip install jdk4py

or as a Conda package:

conda config --add channels https://conda.atoti.io
conda install jdk4py

Versioning

jdk4py version contains 4 figures:

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

API

Execute a JAR

from jdk4py import execute_jar
execute_jar("myJar.jar")

Some JVM arguments can be provided, any additional argument will be passed to Popen:

execute_jar("myJar.jar", jvm_args=["-xmx=16G"], stdout=PIPE, stderr=PIPE)

Home and executable paths

The paths to the packaged Java home directory and to the Java executable are also accessible:

from jdk4py import JAVA, JAVA_HOME

The Java version can be checked with:

>>> from jdk4py import JAVA_VERSION
>>> JAVA_VERSION
'11.0.2'

Project details


Download files

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

Files for jdk4py, version 11.0.9.0
Filename, size File type Python version Upload date Hashes
Filename, size jdk4py-11.0.9.0-py3-none-macosx_10_9_x86_64.whl (31.0 MB) File type Wheel Python version py3 Upload date Hashes View
Filename, size jdk4py-11.0.9.0-py3-none-manylinux1_x86_64.whl (36.4 MB) File type Wheel Python version py3 Upload date Hashes View
Filename, size jdk4py-11.0.9.0-py3-none-win_amd64.whl (34.1 MB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page