i need to create an app that iterate through each of currently running processes on the computer. i need to get a handle to each process, handle to each process's window--if it has one--and to read it's caption. i have created this type of thing with C++ but i don't have a clue of doing it with Java. How should i do this, what Java classes libs i should use for doing these system processes specific stuff.
I'll greatly appreciate ANY help.
Java is not very well suited for a task like that.
Java is designed to be cross-platform, so things that are very operating-system specific, such as enumerating the processes and finding window handles, cannot be easily done, because Java doesn't provide standard API methods to do very operating-system specific things like that.
One more solution is you have that c code that gives you all the needed details, modify it as a way that you can get input in java code when you execute that exe using Runtime api.
Or create dll out of your c program and and expose method to java code using JNI.
It's always best to use the right tool for the job - and there is not a single tool which is perfect for all jobs. Java is great for many things, but not the best tool for very platform-specific things.