title: ID of a Process from Java Program on Windows 64-bit
body: <p>In Java program I've object of <code>Process</code>, I want to know it's <code>PID</code>. Program is running on Windows 64-bit machine. I've come across <a href="https://stackoverflow.com/questions/4750470/how-to-get-pid-of-process-ive-just-started-within-java-program">this</a>, but couldn't make them work. </p>
  
  <p>I need <code>PID</code> of process, because I want to kill the process if it's still running) after timeout. <code>Process#destroy</code> doesn't kill subprocesses.</p>