Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Java Python Integration

I have a Java app that needs to integrate with a 3rd party library. The library is written in Python, and I don't have any say over that. I'm trying to figure out the best way to integrate with it. I'm trying out JEPP (Java Embedded Python) - has anyone used that before? My other thought is to use JNI to communicate with the C bindings for Python.

Any thoughts on the best way to do this would be appreciated. Thanks.

Answer*

Draft saved
Draft discarded

Required fields are marked with *

Cancel
2
  • 6
    This non-JVM compatibility is the biggest shortcoming of Python. Thats why we decided to use Scala. It is even better. Commented Jun 4, 2012 at 14:40
  • Marcin, the remote call way is not desireable for big data implementations (algorithms or applications) for performance and scalability reasons. Indeed "not-quite-compatible" is an issue but "break with cryptic JVM stacktrace" requires some explanation and examples please. You mean hard to debug or does not run? I am trying out Jep which does JNI in-process and seems like the best thing. github.com/mrj0/jep/wiki/How-Jep-Works. Thoughts? Commented Aug 4, 2017 at 6:31

default