Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » something better than java.lang.Runtime.exec()
something better than java.lang.Runtime.exec() [message #336536] Sat, 20 June 2009 06:48 Go to next message
Eclipse UserFriend
Hi,

I am just working on my Builder which depends on running an external
binary and was just wondering if there is a more "eclipse-ish" way to
start an external binary than java.lang.Runtime.exec() ?

regards

christoph
Re: something better than java.lang.Runtime.exec() [message #336537 is a reply to message #336536] Sat, 20 June 2009 07:05 Go to previous messageGo to next message
Eclipse UserFriend
Christoph Höger schrieb:
> Hi,
>
> I am just working on my Builder which depends on running an external
> binary and was just wondering if there is a more "eclipse-ish" way to
> start an external binary than java.lang.Runtime.exec() ?
>
> regards
>
> christoph

Hello Christoph,

I'am using the ProcessBuilder instead of Runtime.exec().
I'am not shure, but I think this two approaches are the only ways to
fork off a process and execute it.

http://www.java-tips.org/java-se-tips/java.util/from-runtime .exec-to-processbuilder.html

Greets,
Joerg
Re: something better than java.lang.Runtime.exec() [message #336553 is a reply to message #336537] Mon, 22 June 2009 10:39 Go to previous messageGo to next message
Eclipse UserFriend
See class org.eclipse.swt.program.Program.

Grant


"Joerg" <paukenj@fh-trier.de> wrote in message
news:h1ifqf$5kl$1@build.eclipse.org...
> Christoph H
Re: something better than java.lang.Runtime.exec() [message #336564 is a reply to message #336553] Tue, 23 June 2009 10:43 Go to previous messageGo to next message
Eclipse UserFriend
Thats more like default commands for MIME types, right?

Am 22.06.2009 16:39, schrieb Grant Gayed:
> See class org.eclipse.swt.program.Program.
>
> Grant
>
>
> "Joerg"<paukenj@fh-trier.de> wrote in message
> news:h1ifqf$5kl$1@build.eclipse.org...
>> Christoph Höger schrieb:
>>> Hi,
>>>
>>> I am just working on my Builder which depends on running an external
>>> binary and was just wondering if there is a more "eclipse-ish" way to
>>> start an external binary than java.lang.Runtime.exec() ?
>>>
>>> regards
>>>
>>> christoph
>> Hello Christoph,
>>
>> I'am using the ProcessBuilder instead of Runtime.exec().
>> I'am not shure, but I think this two approaches are the only ways to
>> fork off a process and execute it.
>>
>>
> http://www.java-tips.org/java-se-tips/java.util/from-runtime .exec-to-processbuilder.html
>> Greets,
>> Joerg
>
>
Re: something better than java.lang.Runtime.exec() [message #336565 is a reply to message #336537] Tue, 23 June 2009 10:43 Go to previous message
Eclipse UserFriend
OK, I'll use this. Thanks.

Am 20.06.2009 13:05, schrieb Joerg:
> Christoph Höger schrieb:
>> Hi,
>>
>> I am just working on my Builder which depends on running an external
>> binary and was just wondering if there is a more "eclipse-ish" way to
>> start an external binary than java.lang.Runtime.exec() ?
>>
>> regards
>>
>> christoph
>
> Hello Christoph,
>
> I'am using the ProcessBuilder instead of Runtime.exec().
> I'am not shure, but I think this two approaches are the only ways to
> fork off a process and execute it.
>
> http://www.java-tips.org/java-se-tips/java.util/from-runtime .exec-to-processbuilder.html
>
>
> Greets,
> Joerg
Previous Topic:Adding a command to multiple views
Next Topic:Getting wrong selection, sometimes
Goto Forum:
  


Current Time: Mon Apr 07 20:55:59 EDT 2025

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

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

Back to the top