From Lesta@t-online.de  Fri Nov 17 18:06:26 2000
Received: from mailout05.sul.t-online.com (mailout05.sul.t-online.com [194.25.134.82])
	by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id SAA18062
	for <prolog@swi.psy.uva.nl>; Fri, 17 Nov 2000 18:06:21 +0100 (MET)
Received: from fwd05.sul.t-online.com 
	by mailout05.sul.t-online.com with smtp 
	id 13woxv-00058P-04; Fri, 17 Nov 2000 18:06:19 +0100
Received: from t-online.de (05121269112-0001@[62.158.101.81]) by fwd05.sul.t-online.com
	with esmtp id 13woxq-1ZGdaSC; Fri, 17 Nov 2000 18:06:14 +0100
Message-ID: <3A1565C5.B5370FB7@t-online.de>
Date: Fri, 17 Nov 2000 18:07:17 +0100
From: Lesta@t-online.de (Uwe Lesta)
Organization: Lesta
X-Mailer: Mozilla 4.7 [de]C-DT  (WinNT; I)
X-Accept-Language: de,en
MIME-Version: 1.0
To: Pierre Nugues <pnugues@greyc.ismra.fr>,
        swi prolog mailing list <prolog@swi.psy.uva.nl>
Subject: Re: Launching Prolog from Java
References: <Pine.SOL.4.10.10011170851040.25948-100000@apollo.ecs.syr.edu> <00c501c050b3$41824b80$c6655dc0@greyc.ismra.fr>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Sender: 05121269112-0001@t-dialin.net



Pierre Nugues schrieb:
> 
> Dear Steffen, Fred, and Paul,
> 
> Thank you for pointing me to the Process class. It's exactly what I was
> looking for.
> 
> I tried a small code to write and read data from Prolog. I used the Process
> class in a Java program and I wrote a small loop to do I/O that I redirected
> to Prolog using the getInputStream and getOutputStream methods. I wrote a
> symmetrical I/O loop in Prolog using get0/1 read/1 and write/1.
> 
> Java launched the plwin.exe correctly but nothing happened with the I/O.
> Prolog prompts me |: and still attempts to read from the keyboard and
> apparently doesn't receives any data from Java. Something seems to happen
> however when I close Prolog using ^C.
> 
> Do you know why or do you have a complete small code sample. I'm using Win98
> and Plwin.exe

Try to use PlCon.exe
On Plwin you can't redirect the I/O steams via the commandline
redirection

-- 


Regards

Uwe
Lesta@t-online.de

