|
From: Oliver W. <Ath...@gm...> - 2002-03-11 14:58:30
|
Hello,
I'm trying to connect a Java Program to my Yap Code (Version 4.3.20).
I start the Java through Yap with the "exec(Command,IO-List,Status)"
Command.
I have Problems to build up a communication between those Parts, and tried
to do it
using the IO-List Parameters in exec/3 . I failed so far.
Yap-Side:
:- exec('java Frame',[user_input,user_output,user_error],Status).
:- write(MSG_O).
:- read(MSG_I).
Java-Side:
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String tempString = "";
while (tempString.compareTo("eof")!= 0) {
tempString = in.readLine();
log.println(tempString); // writes received MSG into a Log-File
System.out.println("pos.");
}
Any Help or new Suggestions are Welcome.
Thanks in advance for your Time and Help.
Oliver Werth
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net |