The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2001



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


Did you find the solution on how to kill a process in Java ?

Posted by Franck Telman on June 08, 2001 at 8:59 PM

Hi Anand,
Could you tell me if you find a way to kill a process in Java ?
Please, let me know. Thanks a lot.
Best Regards,

> I wanted to know whether a process (any .exe file)is running and if it does, then I would like to destroy it. I know how to start a process using the Runtime.getRuntime.exec("someexe.exe"). But how do I find out if "someexe.exe" is running and then kill/destroy it. Thanks in advance.

> Anand


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us