From pnugues@greyc.ismra.fr  Fri Nov 17 10:07:29 2000
Received: from greyc.ismra.fr (l2i.greyc.ismra.fr [192.93.101.84])
	by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id KAA21830
	for <prolog@swi.psy.uva.nl>; Fri, 17 Nov 2000 10:07:28 +0100 (MET)
Received: from penelope (penelope.greyc.ismra.fr [192.93.101.198])
          by greyc.ismra.fr (8.9.3/greyc-1) with SMTP id KAA00438
          for <prolog@swi.psy.uva.nl>; Fri, 17 Nov 2000 10:09:40 GMT
Message-ID: <007801c05075$e1659320$c6655dc0@greyc.ismra.fr>
Reply-To: "Pierre Nugues" <pnugues@greyc.ismra.fr>
From: "Pierre Nugues" <pnugues@greyc.ismra.fr>
To: <prolog@swi.psy.uva.nl>
Subject: Launching Prolog from Java
Date: Fri, 17 Nov 2000 10:07:58 +0100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400

Dear All,

I would like to launch SWI-Prolog from Java. I just need to redirect socket
streams to Prolog's standard input and output before launching it. It's
fairly easy to do that with Unix and C with dup() and execv().

There is an exec() method in Java but apparently it doesn't enable stream
passing.
Is there a workaround?

Pierre

PS I know of JPL. I would like to know whether there is something simpler
--
Pierre Nugues, Professeur d'informatique (pnugues@greyc.ismra.fr)
ISMRA, 6, bd du Maréchal Juin, F-14050 Caen, France
Tél. (33) 231-452-705 -- Fax. (33) 231-452-760
http://www.ensicaen.ismra.fr/~nugues

