Hello everybody,
from my JAVA GUI I want to run a Python script.
When I do it with Runtime.exec(), everything is fine, except the GUI doesn't wait for the external process to end. So I had to switch to ProcessBuilder/SystemCommandExecutor and similar solutions as System.out.println(p.waitFor() == 0).
All of the latter solutions cause my whole System to freeze immediately as soon as the external Process is launched - I have to reboot
In the SystemMonitor of Ubuntu I could see the Memory consumption by this Python Script rising and rising, while I could not click anything.
When the Python script is run independently from my GUI OR with Runtime.exec(), memory consumption is mid-high, but the system does not freeze.
What can I do?
Best regards
Apotekarnes
from my JAVA GUI I want to run a Python script.
When I do it with Runtime.exec(), everything is fine, except the GUI doesn't wait for the external process to end. So I had to switch to ProcessBuilder/SystemCommandExecutor and similar solutions as System.out.println(p.waitFor() == 0).
All of the latter solutions cause my whole System to freeze immediately as soon as the external Process is launched - I have to reboot
In the SystemMonitor of Ubuntu I could see the Memory consumption by this Python Script rising and rising, while I could not click anything.
When the Python script is run independently from my GUI OR with Runtime.exec(), memory consumption is mid-high, but the system does not freeze.
What can I do?
Best regards
Apotekarnes