[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Interfacing Java to GNU Prolog (via C?)

From: Jean Michel LECONTE
Subject: Re: Interfacing Java to GNU Prolog (via C?)
Date: Tue, 18 Mar 2003 21:47:10 +0100

Try with sockets cause thts working on windows too.
try to reach that URL and get the CLPGUI system. There is an interface between Prolog and Java through sockets. (and thts very easy to understand)

Jean Michel LECONTE

address@hidden writes:
I want to write a program in Java that uses GNU prolog. That, I think, means using an intermediate C module. Is possible to compile a C module using gplc that also references Java through the Java native interface? Data would be passed from the Java program to the C module to GNU Prolog, and then back from GNU prolog to the C module to the Java program. Or is there an easier way to do this? My Java program is an applet that would be running over the internet, so I am not sure if I would want to write the data (facts) for the GNU prolog to a file, call a GNU prolog executable (through an OS call) from Java that reads the data from a file and then writes the results back to a file. The output file would then be available for Java to read. I thought of sockets, but the program that I am writing is for a Windows platform, and the documentation on sockets mentions UNIX.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]