I have a SSH Server running and need to close and open a JavaFX application. Using freeSSHd and JSch, i was able to close the application using:
sendCommand("wmic Path win32_process Where \"CommandLine Like '%Test.jar%'\" Call Terminate");
The command above closes the application without a problem.
When I need to start the application again, I am trying to use:
sendCommand("cmd /c cd C:/Test/dist && java -jar Test.jar");
What happens is that a window from Interactive Services Detection opens with the message : "A program running on this computer is trying to display a message". Opening the message shows the JavaFX application.
I need to open the JavaFX application directly on the remote computer, without this showing up. Is this behavior normal? Can i achieve this using SSH (JSch) ? I know that PSExec is an alternative, but it has to be installed in every client computer.
The same happens when I try the command in PuTTY console.
I think it is related to "Session 0 Isolation", but I don't know what this means.