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
asked Sep 13, 2020 at 19:35
OK 400
8414 gold badges19 silver badges51 bronze badges
1 Answer 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/
answered Sep 13, 2020 at 20:10
Sajjad Zaidi
1791 silver badge12 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
default