Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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
Christoph Höger is currently offline Christoph Höger
Messages: 40
Registered: July 2009
Member
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
Joerg is currently offline Joerg
Messages: 9
Registered: July 2009
Junior Member
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
Grant Gayed is currently offline Grant Gayed
Messages: 2148
Registered: July 2009
Senior Member
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
Christoph Höger is currently offline Christoph Höger
Messages: 40
Registered: July 2009
Member
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
Christoph Höger is currently offline Christoph Höger
Messages: 40
Registered: July 2009
Member
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: Fri Aug 29 16:21:54 EDT 2014

Powered by FUDForum. Page generated in 0.01646 seconds