Ummmm. No I Can't... I think it's one of those little completely O/S dependant jobbies which the Java designers and API authors try hard to stear clear of.
there's an "enumerate processes" in the Win32 api... which you might be able to call via ?RMI isn't it? But myself, I'd think about implementing (or finding) a windows version of the unix ps command... then just call it from java and "parse" the results.
Message was edited by: corlettk
> Cant it be done even using Runtime.exec()?
Well, sure. Assuming there is a command-line program that does what you want. But then your question is "What can I run at the Windows command line to get a list of all the running applications?" and (I am sure you will agree) this is nothing at all to do with Java programming.
> > Cant it be done even using Runtime.exec()?
>
> Well, sure. Assuming there is a command-line program
> that does what you want. But then your question is
> "What can I run at the Windows command line to get a
> list of all the running applications?" and (I am sure
> you will agree) this is nothing at all to do with
> Java programming.
I completely agree... I just find it amazing that this guy knows exactly what he wants to do but is unable to point a web browser to a search engine, type in what he wants to do the read the resulting pages.