title: list task manager processes in java
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/53489/how-do-you-list-all-processes-on-the-command-line-in-windows">How do you list all processes on the command line in Windows?</a></p>
  </blockquote>
  
  
  
  <p>I want to list all processes like "svchost.exe","explorer.exe" of task manager using Java.
  If possible, I would also like to know the amount of memory used by each process.</p>
  
  <p>I would prefer a Java-only solution to adapting the command-line answers from <a href="https://stackoverflow.com/questions/53489/how-do-you-list-all-processes-on-the-command-line-in-windows">this question</a></p>