Java Program to List all running process of Win 2k OS

I want to write a simple command line Java Program to List all running process of Win 2k OS.Which class i can use to write this program. Has anybody done this before? Your Help Will be Appriciated
[217 byte] By [AppSa] at [2007-10-3 7:06:57]
# 1
There is not such class within standart Java. Use JNI and WinAPI functionality.
Michael.Nazarov@sun.coma at 2007-7-15 2:01:13 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
Or Runtime.exec() with some command line tool
jschella at 2007-7-15 2:01:13 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3

Hi, you can use JNative to do that:

- put JNative.jar in your classpath

- put JNative.dll in your path

- see an example for using it at http://jnative.cvs.sourceforge.net/jnative/JNative/src/java/JNative/org/xvolks/test/KillProcess.java?view=markup

--Marc (http://jnative.sf.net)

mdentya at 2007-7-15 2:01:13 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 4
Thank you for your comments. It helped me to solvethe issue....
AppSa at 2007-7-15 2:01:13 > top of Java-index,Java HotSpot Virtual Machine,Specifications...