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 OverflowGitHub
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
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.
Top answer 1 of 5
1
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)
2 of 5
1
Check out https://github.com/mrj0/jep, that's where JEP is now. And it seems it was updated recently. As per the site it now works with Python version >= 2.6.
Bioimageanalysis
icy.bioimageanalysis.org › plugin › jep-java-embedded-python
JEP – Java Embedded Python | – Open Source Image Processing Software
August 3, 2022 - Jep embeds CPython in Java through JNI. Code on Python through Java !
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
Maven Repository
mvnrepository.com › artifact › black.ninia › jep
Maven Repository: black.ninia » jep
November 4, 2025 - Jep embeds CPython in Java through JNI.
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).
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+ ...