to get list of all the running applications

Hi all,Hey can anyone tell me how i wil get list of all the running applications on windows using java?
[117 byte] By [bhargav.y.joshia] at [2007-11-26 20:16:20]
# 1

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

corlettka at 2007-7-10 0:38:54 > top of Java-index,Java Essentials,Java Programming...
# 2
Cant it be done even using Runtime.exec()?I think that using this it should be done but I dont know what the argument for exec() method should be passed.....If possible give the whole syntax for it....
bhargav.y.joshia at 2007-7-10 0:38:54 > top of Java-index,Java Essentials,Java Programming...
# 3

> 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.

DrClapa at 2007-7-10 0:38:54 > top of Java-index,Java Essentials,Java Programming...
# 4
http://www.google.com/search?source=ig&hl=en&q=windows+command+to+list+all+running+processes&btnG=Google+Search
MrPicklesa at 2007-7-10 0:38:54 > top of Java-index,Java Essentials,Java Programming...
# 5

> > 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.

MrPicklesa at 2007-7-10 0:38:54 > top of Java-index,Java Essentials,Java Programming...