Different / better approaches for calling python function from Java

前端 未结 2 1247
鱼传尺愫
鱼传尺愫 2020-12-21 06:22

I am quite new to python and am trying to call python\'s function from java.

My primary requirements are these:

  • call should be transparent, in the sens
2条回答
  •  -上瘾入骨i
    2020-12-21 07:12

    There is no current answer to this problem. Using CPython relies on the execution of Python bytecodes, which in turn requires that the Python interpreter be embedded in the execution environment. Since no Java runtime comes with an embedded Python interpreter, it really does look as though Jython is the best answer.

    Sometimes the answer you want just isn't available!

提交回复
热议问题