Python bridge for the Java Virtual Machine.
What is jvm:¶
Eventually, it should be possible to replace Java with python in many, though not all, situations. JSP, Servlets, RMI servers and IDE plugins are good candidates.
Once this integration is achieved, a second phase will be started to separate the Java logic from the Python logic, eventually allowing the bridging technology to be used in other environments, I.E. Ruby, Perl, COM, etc …
- Known Bugs/Limitations :
Java classes outside of a package (in the <default>) cannot be imported.
Because of lack of JVM support, you cannot shutdown the JVM and then restart it.
Some methods rely on the “current” class/caller. Since calls coming directly from python code do not have a current class, these methods do not work. The User Manual lists all the known methods like that.
Python 3.6 or higher
3.7 with Java 8 is a primary test environment.
pip and setuptools
To install run:
python -m pip install --upgrade jvm
Development is strictly based on tox. To install it run:
python -m pip install --upgrade tox
Visit development page.
Installation from sources:
clone the sources:
git clone https://github.com/karpierz/jvm.git jvm
python -m pip install ./jvm
or on development mode:
python -m pip install --editable ./jvm
Copyright (c) 2004-2022 Adam KarpierzLicensed under CC BY-NC-ND 4.0Licensed under proprietary LicensePlease refer to the accompanying LICENSE file.