In Java program I've object of Process
, I want to know it's PID
. Program is running on Windows 64-bit machine. I've come across this, but couldn't make them work.
I need PID
of process, because I want to kill the process if it's still running) after timeout. Process#destroy
doesn't kill subprocesses.