Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » how to terminate new process created via Runtime.exec()
how to terminate new process created via Runtime.exec() [message #333112] Wed, 26 November 2008 02:34 Go to next message
Eclipse UserFriend
Hi, all

I'm recently having a problem with terminating the new created process.
<code>
Proecess process = Runtime.getRuntime().exec(...);
process.destroy();
</code>

but after that, the process still alive!

Did I missing something?

--
Thanks & Best Regards
Nick
Re: how to terminate new process created via Runtime.exec() [message #333131 is a reply to message #333112] Wed, 26 November 2008 12:27 Go to previous message
Eclipse UserFriend
nick tan wrote:
> I'm recently having a problem with terminating the new created process.
> <code>
> Proecess process = Runtime.getRuntime().exec(...);
> process.destroy();
> </code>
>
> but after that, the process still alive!
>
> Did I missing something?

Yes, please read:

http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps. html?page=1

HTH & Greetings from Bremen,

Daniel Krügler
Previous Topic:Syntax Highlighting Rules for Custom Editor
Next Topic:Wwitch between Groups of Key Bindings Dynamically
Goto Forum:
  


Current Time: Sun Feb 09 09:17:19 GMT 2025

Powered by FUDForum. Page generated in 0.03515 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top