Skip to content Skip to sidebar Skip to footer

Send Data From Python Program To Java Program

I have a Python program status.py that prints some status updates (strings) to the console. However, I need to write a JavaFX program Display.java that launches the Python program

Solution 1:

There are two options for communicating information from a Python process to a Java process:

  1. Java's popular networking libraries will make it easy to read in data through a socket. Since you can easily open up a socket in Python, implementing socket communication would be the easiest solution.
  2. If you have experience with Jython, you can eliminate the need to perform inter-process communication by including the Python code within the Java code.

Post a Comment for "Send Data From Python Program To Java Program"