title: Java Task Manager Program
body: <p>I would like to read the Active applications running in Task Manager (Applications Tab).</p>
  
  <p>I have tried the code</p>
  
  <pre><code>Runtime.getRuntime().exec("tasklist.exe /nh")
  </code></pre>
  
  <p>which is getting the processes that are active but i need the Active applications,</p>