Skip to main content

Packaged JDK for Python

Project description


A packaged JDK for Python.

PyPI version


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

pip install jdk4py

or as a Conda package:

conda config --add channels
conda install jdk4py


>>> from jdk4py import JAVA, JAVA_HOME, JAVA_VERSION
>>> JAVA
(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!"


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

jdk4py- (38.6 MB view hashes)

Uploaded Python 3 Windows x86-64

jdk4py- (43.1 MB view hashes)

Uploaded Python 3

jdk4py- (38.6 MB view hashes)

Uploaded Python 3 macOS 11.0+ ARM64

jdk4py- (39.8 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