Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using Java, how to detect if an App is running

 
boyet silverio
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am looking for ways to do the following preferably in Java:

Some programs (e.g. anti virus, etc) pose problems during windows startup, so these have to be excluded from startup and executed only when the startup process is completed. This problem exists probably due to incompatibilities with the OS, hardware etc.. among other factors... other SW/HW changes being considered...
But meanwhile, I am thinking of creating an executable jar file (icon) for these that implements the pseudo code above.
Thanks for any comments on how to do it in Java.
[ May 27, 2003: Message edited by: boyet silverio ]
 
sram bahl
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can always identify the process that are running from the process table. You can issue java based shell calls (Runtime.exec(...))on OS specific commands to identify these processes.
 
boyet silverio
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks, thats the place to start.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic