7/17/2012 11:52:02 AM
Total Posts 11


Welcome to the new JIProlog Forum.

This forum is dedicated to all stuffs related to JIProlog: technical and/or commercial questions, technical issues, bug reports, tips and tricks, etc.
I'll try to reply to all answers hoping that this may help you in your developments.



Ugo Chirico


12/31/2012 7:14:28 AM
Total Posts 1

Re: Welcome


First I would like to thank you all for your efforts. Really JIProlog is a powerful IDE for Prolog and a good Java-Prolog interpreter. smiley

Kindly I have a problem in creating a custom built-in predicate, my problem appears when I am trying to pass a value of type String from Prolog to Java.

I had implemented the example (RandomNumberGen3) in p.65 in reference manual and it worked well with no problems because I passed a numbers but when I had created another custom predicate and I tried to pass a String to it, an error always appear.


JIP:- getvalue('apple','banana','n',X)
error(runtime_error('Unexpected call'), context(xcall('.'(74, '.'(87, '.'(111, '.'(114, []))))), '.'(apple, '.'(banana, '.'(n, '.'(_4944546, []))))), file(undefined, 0)))
Unexpected call


Waiting your help.

Thanks in advance.

1/7/2013 11:19:30 AM
Total Posts 11

Re: Welcome

How did you define your predicate "getvalue" in prolog?

it seems that you use " instead of '