how to connect prolog with netbeans

597 views
Skip to first unread message

الاء الرحيلي

unread,
Feb 9, 2016, 6:56:22 PM2/9/16
to SWI-Prolog

I designed program can be run independently in prolog, now I want to build a GUI for it based on java using netbeans. I did not know how to do the query to consult the file and how to connect prolog with netbeans.

can any person help me

Anne Ogborn

unread,
Feb 11, 2016, 3:47:58 PM2/11/16
to الاء الرحيلي, SWI-Prolog


You can do this in one of two ways -

JPL is the Java - Prolog interop layer.

http://www.swi-prolog.org/pldoc/doc_for?object=section(%27packages/jpl.html%27)


The other way is to turn your Prolog program into a web service, and call it from Java.

http://www.pathwayslms.com/swipltuts/html/index.html

is a tutorial on using the Prolog web framework. For this purpose just looking at the first couple examples should be enough.

If you're not set on using Java, you can also just use the above web framework to build an in-browser GUI.

Annie

Wouter Beek

unread,
Feb 11, 2016, 7:03:10 PM2/11/16
to الاء الرحيلي, SWI-Prolog
On Wed, Feb 10, 2016 at 12:47 AM, الاء الرحيلي <lool...@gmail.com> wrote:
designed program can be run independently in prolog, now I want to build a GUI for it based on java using netbeans.
​If you want to go for a '90s style GUI you can also give XPCE a spin.​

---
Best,
Wouter.

WWW: wouterbeek.com
Tel: +31647674624
Reply all
Reply to author
Forward
0 new messages