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

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.

Source Distribution

jdk4py-11.0.7.3.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distributions

jdk4py-11.0.7.3-py3-none-win_amd64.whl (30.7 MB view hashes)

Uploaded Python 3 Windows x86-64

jdk4py-11.0.7.3-py3-none-manylinux1_x86_64.whl (34.9 MB view hashes)

Uploaded Python 3

jdk4py-11.0.7.3-py3-none-macosx_10_9_x86_64.whl (30.6 MB view hashes)

Uploaded Python 3 macOS 10.9+ x86-64

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