Skip to main content


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 10:48 Go to next message
Christoph Höger is currently offline Christoph HögerFriend
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 11:05 Go to previous messageGo to next message
Joerg is currently offline JoergFriend
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 14:39 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
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 14:43 Go to previous messageGo to next message
Christoph Höger is currently offline Christoph HögerFriend
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 14:43 Go to previous message
Christoph Höger is currently offline Christoph HögerFriend
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 Dec 27 02:10:57 GMT 2024

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

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

Back to the top