0

Python/Java Integration

I have been struggling through my code for more than 3 hours. The problem is to get the output of python code as an input to java code. So is there any way I can do that ???

10th May 2019, 7:38 PM
Ali
3 Answers
0
By using RESTful Services or gRPC
10th May 2019, 10:11 PM
Majstor_Gile
Majstor_Gile - avatar
0
Java is capable of executing processes: https://www.mkyong.com/java/how-to-execute-shell-command-from-java/ You can run your python code this way and your value through stdout (print) Or you can open a TCP server and send your result through tcp
10th May 2019, 11:34 PM
Paul