1

Imagine I have script real.java which has to pass arguments A, B and C to a python script code.py. Then, code.py does something and have to return arguments fi and foo to real.java. But I do not know how to do create that function in java neither in Python

1 Answer 1

1

You can use ProcessBuilder or you can use something like jython.
ProcessBuilder example: How to return value from Python script to Java using ProcessBuilder? Jython Documentation: https://www.jython.org/

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

Comments

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.