"Shailesh S.",
Please read your
private messages regarding an important announcement.
Thank you,
Rob
Now about your problem. There are two ways:
1) use JNI; you will need native Windows functions CreateToolhelp32Snapshot, Process32First, Process32Next and CloseHandle, plus native structure ProcessEntry.
2) execute tasklist.exe (located in C:\WINDOWS\system32) using ProcessBuilder / Runtime.exec and parse the results. Check out "tasklist /?" for more options. Especially the "/FO CSV" can be useful to make it a bit easier to parse.