A Python module to access Java classes as Python classes using JNI.
This fork maintained by the ANT Center is provided for our users as a fallback when the upstream version is broken.
- We've patched it to work on Java 12 and above
- This readme
View the full comparison on GitHub.
- A Java JDK such as OpenJDK where...
- If you're using a JDK earlier than version 9, the
JAVA_HOME
environment variable is set. - If you're using windows, both
javac
andjvm.dll
are on yourPATH
- If you're using a JDK earlier than version 9, the
- git
- A C++ build environment. Windows users can download C++ Build Tools for free from Microsoft.
- Python with development headers. Linux users can install their system's
python3-devel
(rpm-based) orpython3-dev
(deb based) package. Mac users can install a working python through homebrew. Windows users should use Anaconda - pip (bundled with anaconda,
python3-pip
in many package managers)
pip install Cython
pip install -U 'git+https://github.com/ANTCenter/pyjnius.git'
Upstream accepts issues and pull requests. We keep an eye on these, and will generally try to make sure this fork is in a usable state.