1

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

2
  • I haven't done any jython, but I would expect you to be able to get the output from an interpreter launching in java. Did you try reading from the system in? Commented Dec 11, 2013 at 13:13
  • I think you might be referring to(stackoverflow.com/questions/13861024/…, this is without using jython, that's not what i'm trying to achieve Commented Dec 11, 2013 at 14:41

1 Answer 1

0

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

Sign up to request clarification or add additional context in comments.

1 Comment

Using web service would do the trick, I can't disagree on that, but for a small task like (sending parameters & receiving response) , I think web service is a complicate way of achieving it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.