Communication between Java and Python using Jython

461 Views Asked by At

I'm still trying to figure out how to receive a response from python script to my Java file making use of Jython. I know we can use PythonInterpreter execfile to execute python scripts but does PythonInterpreter allows us to receive the respone from the script ?

I know the question is being asked many times, but I would like to know if we can do this using Jython.

Thanks in advance

1

There are 1 best solutions below

1
On

How about communicating through web service? It keeps modules loosely coupled and gives you ability to split work between developers more easily.