Article View: borland.public.jbuilder.java.api
Article #2299Re: Exectuting external app
From: John McGrath TeamB
Date: Sat, 24 Mar 2001 06:22
Date: Sat, 24 Mar 2001 06:22
24 lines
1653 bytes
1653 bytes
On Fri, 23 Mar 2001 09:15:35 -0700, Calvin R. Smith wrote:
> This I know. What I want is to launch a program and
> NOT capture it's output.
You cannot do that with the Java Runtime exec(), since that is not how
it works. If you want to display the output from Runtime exec(), you
will have to create a window, capture the output, and display it. And
if you ignore the output, you run the risk of having your subprocess
hang.
The alternative is to write your own exec() method. It would be almost
trivial, or at least as trivial as writing native code can be in Java.
But it would still involve native code, and would limit the portability
of your application.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<MPG.1525f00cd43c8d9298a09e@forums.borland.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!209.92.40.60References:
<3aba6504_2@dnews> <MPG.1524c8bd4b2eac3e98a095@forums.borland.com> <3abb770b$2_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,dc52a4c87b02d0a0 X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2001-03-23 22:30:06 PST From: John McGrath [TeamB] <ng-b@JPMcGrath.net> Newsgroups: borland.public.jbuilder.java.api Subject: Re: Exectuting external app Date: Sat, 24 Mar 2001 01:22:10 -0500 Message-ID: <MPG.1525f00cd43c8d9298a09e@forums.borland.com> References: <3aba6504_2@dnews> <MPG.1524c8bd4b2eac3e98a095@forums.borland.com> <3abb770b$2_1@dnews> X-Newsreader: MicroPlanet Gravity v2.30 NNTP-Posting-Host: 209.92.40.60 X-Trace: 23 Mar 2001 22:17:46 -0800, 209.92.40.60 Lines: 24 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!209.92.40.60