There's another sourceforge project called pyro4. It can handle python modules like: numpy, sklearn... And maybe it's even better because it is currently developed. (last jepp version was released in 2010)

Answer from Balazs Varhegyi on Stack Overflow
🌐
GitHub
github.com › ninia › jep
GitHub - ninia/jep: Embed Python in Java · GitHub
Jep embeds CPython in Java through JNI. ... Using the native Python interpreter may be much faster than alternatives.
Starred by 1.5K users
Forked by 163 users
Languages   C 52.1% | Java 30.2% | Python 17.7%
🌐
PyPI
pypi.org › project › jep
jep · PyPI
Both Java and Python are cross platform, enabling deployment to different operating systems. Simply run pip install jep or download the source and run pip install .. Building and installing require the JDK and Python, to be installed beforehand.
      » pip install jep
    
Published   Nov 04, 2025
Version   4.3.1
🌐
JEP
ninia.github.io › jep
Jep - Java Embedded Python | JEP
Jep embeds CPython in Java through JNI. ... Using the native Python interpreter may be much faster than alternatives.
🌐
Ninia
ninia.github.io › jep › javadoc › 3.7 › jep › Jep.html
Jep
Embeds CPython in Java. Each Jep instance can be considered a Python sub-intepreter, mostly sandboxed from other Jep instances.
🌐
Tech
galina.tech.blog › 2022 › 07 › 11 › how-to-execute-python-modules-from-java
How To Execute Python Modules From Java. – A technical blog about Data Science
July 15, 2022 - Jep uses JNI and the CPython API to start up the Python interpreter inside the JVM. When you create an Interpreter instance in Java, a Python interpreter will be created for that Java Interpreter instance and will remain in memory until the ...
🌐
GitHub
github.com › ninia › jep › wiki › Getting-Started
Getting Started · ninia/jep Wiki · GitHub
August 30, 2019 - The shared library (jep.so or jep.dll) ... LD_LIBRARY_PATH) The jep python files (console.py, java_import_hook.py, version.py, etc) are accessible by Python (typically by placing them in the site-packages/jep directory)....
Author   ninia
Find elsewhere
🌐
Tabnine
tabnine.com › home page › code › java › jep.jep
jep.Jep java code examples | Tabnine
Each Jep provides access to a Python interpreter and maintains an independent global namespace for Python variables. Values can be passed from Java to Python using the various set() methods.
🌐
GitHub
github.com › ninia › jep › wiki › How-Jep-Works
How Jep Works
August 30, 2019 - Jep uses JNI and the CPython API to start up the Python interpreter inside the JVM. When you create an Interpreter instance in Java, either a SubInterpreter or SharedInterpreter, a Python interpreter will be created for that Java Interpreter ...
Author   ninia
🌐
Google Groups
groups.google.com › g › jep-project › c › r6Fo91Dio5I
Access a Java object at runtime in Jep-embedded Python
March 15, 2017 - That doesn't work but a similar statement of "from java.util import ArrayList" does work. You can notice the same behavior with other python packages, for example "import numpy.ndarray" fails but "from numpy import ndarray" succeeds. You can play with these imports with the jep command line script, though it will use the default ClassEnquirer (though that will include classes on the classpath).
🌐
Snyk
snyk.io › advisor › python packages › jep
jep - Python Package Health Analysis | Snyk
February 14, 2021 - Jep embeds CPython in Java. Visit Snyk Advisor to see a full health score report for jep, including popularity, security, maintenance & community analysis. The python package jep receives a total of 19,244 weekly downloads. As such, jep popularity was classified as a popular.
🌐
GitHub
github.com › ninia › jep › releases
Releases · ninia/jep
This patch fixes a regression introduced in Jep 4.3.0 with accessing java sub-packages from Python.
Author   ninia
🌐
The SW Developer
theswdeveloper.com › post › java-python-jep
How to execute Python code in Java - The SW Developer
September 10, 2021 - In this tutorial we will show you how to integrate Java and Python code in an almost seamless manner with just a few easy steps.What is jep?Jep is an open source library which gives you the ability to execute Python code in Java and vice versa.Let's ...
🌐
GitHub
github.com › Galina-Blokh › jep-java-python
GitHub - Galina-Blokh/jep-java-python: example of calling python from java · GitHub
example of calling python from java. Contribute to Galina-Blokh/jep-java-python development by creating an account on GitHub.
Author   Galina-Blokh
🌐
Stack Overflow
stackoverflow.com › questions › 76507404 › using-jep-to-modify-java-object
python - Using Jep to modify java object - Stack Overflow
Eventually the object that will be returned from the Python function should be the same Java object- after the required modifications. ... @PostConstruct public void init() { String pythonFolder = System.getenv("DYLD_LIBRARY_PATH"); String jepPath = pythonFolder + "/libjep.jnilib"; if (!Files.exists(Path.of(jepPath))){ jepPath = pythonFolder + "/libjep.so"; } MainInterpreter.setJepLibraryPath(jepPath); // set path for python docs with python script to run jep.JepConfig jepConf = new JepConfig(); jepConf.addIncludePaths(System.getProperty("user.dir")+"/src/main/Python/"); jepConf.addIncludePath
🌐
GitHub
github.com › karpierz › jtypes.jep
GitHub - karpierz/jtypes.jep: Java Embedded Python (ctypes/cffi-based Jep).
It is an almost fully compliant implementation of Mike Johnson's Jep package by reimplementing its functionality in a clean Python instead of C. ... Jep embeds CPython in Java through JNI and is safe to use in a heavily threaded environment.
Author   karpierz
🌐
Blogger
nishantgandhi99.blogspot.com › 2016 › 12 › java-embedded-python-jep.html
Nishant Gandhi: Java Embedded Python (JEP)
December 9, 2016 - Project Page: https://github.com/mrj0/jep Documentation: https://github.com/mrj0/jep/wiki Prerequisite: JDK 6+ Python 2.6+ ...