M
Michael Grove
hi,
if i start a JVM on windows from one shell (or process), is there a way to
send the equivalent of a ctrl-c to the JVM from another shell or process?
on unix a regular kill gracefully terminates the JVM (shutdown hooks
invoked). on windows, unless i have access to the shell that started the
JVM, i'm not sure how to gracefully stop the JVM. i believe if i started
the JVM through JNI i could use JNI to stop the JVM gracefully (think that's
how JavaService does it) but i need to be able to stop a JVM started by
another process that invokes java.exe directly. i'm hoping i can write a
program that, given the JVM PID, sends a ctrl-c equivalent to the JVM.
ideas? didn't see this covered in a google search, sorry if i missed it.
thanks.
-mike
if i start a JVM on windows from one shell (or process), is there a way to
send the equivalent of a ctrl-c to the JVM from another shell or process?
on unix a regular kill gracefully terminates the JVM (shutdown hooks
invoked). on windows, unless i have access to the shell that started the
JVM, i'm not sure how to gracefully stop the JVM. i believe if i started
the JVM through JNI i could use JNI to stop the JVM gracefully (think that's
how JavaService does it) but i need to be able to stop a JVM started by
another process that invokes java.exe directly. i'm hoping i can write a
program that, given the JVM PID, sends a ctrl-c equivalent to the JVM.
ideas? didn't see this covered in a google search, sorry if i missed it.
thanks.
-mike