This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Using Java, how to detect if an App is running Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Using Java, how to detect if an App is running" Watch "Using Java, how to detect if an App is running" New topic
Author

Using Java, how to detect if an App is running

boyet silverio
Ranch Hand

Joined: Aug 28, 2002
Posts: 173
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

Joined: Nov 26, 2002
Posts: 13
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

Joined: Aug 28, 2002
Posts: 173
thanks, thats the place to start.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using Java, how to detect if an App is running
 
Similar Threads
Returning String to Java from C via JNI
Class Already Been Loaded
instance of server
Swig
How to make a java window appear in front of other Windows applications