When you use Runtime.getRuntime.exec() the command is sent from you terminal and not from the JVM.Complete nonsense. The JVM calls one of the varieties of exec(2), or WinExec() on Windows. What you describe neither exists nor even makes sense.
You can try to apply a stop command which you catch in OS space and close the exec correctly, so the application starting it will know about it.More nonsense.
997124 wrote:Presumably all of that means that
...before I get a chance to write the proper shutdown command to its standard in.