There's no Java API for this. You have two choices: a platform-dependent JNI function that uses the native OS's mechanism for getting this list, or using Runtime.exec() to run some platform-dependent program that returns the list as text and then parsing the result.
...and using pure Java you can track (to some degree) only the processes which your application have started by callimg Runtime.exec(...) If you need to track other processes, it will not work for you.
Hello, I am facing a problem. The link above which was given to me, provided me a source code written on C or C++. Could you please tell me which software do I have to use to run the program. Thanks....
SCJP 1.4, SCMAD 1.0<br />SCWCD, SCBCD (in progress)