We have a similar situation; we submit documents to OO for 'rendering'; if the process times out in some way we kill OpenOffice. Since this is a windows system, we use the TASKKILL.exe tool and just execute it via the java System calls. I am sure that there are matching supervisory widgets for all OS' and your app could pick up the right one from some resource.
-----Original Message----- From: Hal Vaughan [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 09, 2007 8:07 AM To: [email protected] Subject: [api-dev] Stopping a frozen instance of Openoffice I'm using OOo 2.0 in an Java application. When the Java program starts, it attempts to connect with OOo. If it can't, then it runs OOo and sets a flag to show OOo was not running when the app started. At the end, if OOo was not running at the start, it'll send a quit command to OOo. I've had problems, a few times, with OOo being frozen or unable to connect when I start. My program will start and try to connect with OOo, not get a connection, try to run it, and keep waiting for a connection. When that happens, from what I can tell, the new instance of OOo that I start seems to realize there is an instance already running and exits. Is there some way, from the command line (since there's no response to trying to connect through Java) to kill an stubborn instance of OOo? When this happens to my clients, they have to kill it by either clicking on the icon in the system tray (on Windows) or by killing it from the command line on Linux. I'd like to find a way to kill a "rogue" instance of it myself when I can't connect with Java. Is there a way to do that? On Linux I could call a bash script and get all the process IDs, search for text like "office" or "soffice" and kill the corresponding programs, but I don't know how to do anything like that on Windows and eventually I also want to support Mac, so I'd like to not have to add something else that is so platform independent. Thanks! Hal --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
