Windows Task Manager in Java

hello to all,

Is there any way or api in java through which i can build Windows Task Manager that displays the number of applications and tasks executing at a time and option to terminate any task.

How to get system information in java like...

1. Hard Disk Information

a. Partitions name

b. File System

c. Total Space

d. Free Space

e. Label

2. Operating Systems Information

a. OS Name

b. Version Number

c. Service Pack

3. Processor

a. Processor Name

b. Family

c. Size of Address & Data Bus

d. Performance of Processor

e. Processor Speed

f. L2 Cache Size

g. L2 Cache Speed

4. Memory

a. Total Space

b. Free Space

c. Total Virtual Memory Size

d. Available memory size

Please if anybody knows then please tell as early as possible, thanks

[901 byte] By [aafaqhassana] at [2007-11-26 16:52:01]
# 1
Of course not. Why would java know anything about other tasks running on your system? You'll need native code if you want to do this.
Jasprea at 2007-7-8 23:19:45 > top of Java-index,Java Essentials,Java Programming...
# 2

import java.io.IOException;

class test {

public static void main(String [] args) {

Runtime runtime = Runtime.getRuntime();

try {

runtime.exec("taskmgr.exe");

} catch (IOException e) {

e.printStackTrace();

}

}

}

:-P

kevjavaa at 2007-7-8 23:19:45 > top of Java-index,Java Essentials,Java Programming...
# 3
@Op. You shouldn't use Java if you want to get hold of that type of information.Kaj
kajbja at 2007-7-8 23:19:45 > top of Java-index,Java Essentials,Java Programming...