• Post Reply Bookmark Topic Watch Topic
  • New Topic

access the TaskManager  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
I want to access the TaskManager from my java application..
I am using a win2000 OS .
want to list out the process running in the task manager ..
thanks in advance..
 
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's no way to get this information without either
  • Using Runtime.exec() to run a platform-specific program (the Cygwin project includes a version of "ps" you could use; not sure if Windows includes any command-line process-listing application of its own)
  • Using JNI, the Java Native Interface, to extend the JVM with C code.


  • Otherwise, Java itself provides no way to access this sort of information.
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!