How to call java objects and functions from CPython?

后端 未结 6 707
栀梦
栀梦 2020-12-13 22:05

I have a python program, which runs on the CPython implementation, and inside it I must call a function defined in a java program. How can I do this?

It would be nic

6条回答
  •  时光说笑
    2020-12-13 22:34

    Look at our project python-javabridge. It's a Python wrapper around the JNI, heavily used by CellProfiler. It offers both low-level access to the JNI and a high-level reflection-based access to Java objects.

提交回复
热议问题