I am not sure that Java has a class that will do this for you so you would need to try one of three options:
1. Use the Windows
tasklist
program to get the list and pipe its output into your Java app.
2. Use the
Java Native Access[
^] library to interface to the Windows
EnumProcesses[
^] function to get the details.
3. Write a C++ library to get the details you want (from
EnumProcesses
) and access it via JNI.