Article View: borland.public.jbuilder.java.language
Article #8774Re: Calling applis from an appli
From: John McGrath TeamB
Date: Sat, 03 Mar 2001 11:08
Date: Sat, 03 Mar 2001 11:08
22 lines
1494 bytes
1494 bytes
On Sat, 3 Mar 2001 08:47:39 +0100, icsd.jt@wanadoo.fr wrote:
> I tested a rt-exec('... my bat) and to import the
> packages of these applis but without success.
Can you post the code that you tried? Runtime.exec() should be able to
run a batch file.
This is just a guess, but were you expecting the output from the batch
file to go to the console? The standard output and standard error from
a process create by Runtime.exec() gets piped back to the Java process.
You can use the Process getInputStream and getErrorStream() methods to
read the output from the process.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<MPG.150a9aa7fc92fce5989ffc@forums.borland.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mailReferences:
<3aa0a077_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,ec6af10449d9afc3 X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-03-03 03:24:05 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mail From: John McGrath [TeamB] <ng-b@JPMcGrath.net> Newsgroups: borland.public.jbuilder.java.language Subject: Re: Calling applis from an appli Date: Sat, 3 Mar 2001 06:08:12 -0500 Organization: Another Netscape Collabra Server User Lines: 22 Message-ID: <MPG.150a9aa7fc92fce5989ffc@forums.borland.com> References: <3aa0a077_1@dnews> NNTP-Posting-Host: dslcv1-60.fast.net X-Newsreader: MicroPlanet Gravity v2.30