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)

Java home and executable

The path to the packaged Java home folder and to 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.5.1
Filename, size File type Python version Upload date Hashes
Filename, size jdk4py-11.0.5.1-py3-none-macosx_10_9_x86_64.whl (29.9 MB) File type Wheel Python version py3 Upload date Hashes View
Filename, size jdk4py-11.0.5.1-py3-none-manylinux1_x86_64.whl (34.5 MB) File type Wheel Python version py3 Upload date Hashes View
Filename, size jdk4py-11.0.5.1-py3-none-win_amd64.whl (30.3 MB) File type Wheel Python version py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page