[eclipse-clp-users] Calling predicates from a module using Java

From: Wit Jakuczun <wit.jakuczun_at_gmail.com>
Date: Tue, 27 May 2008 22:47:37 +0200
Hi,
   I have a question regarding Java to ECLiPSe interface.
I have a prolog program that consists of a few modules.
I would like to be able to call a predicate from a module.
For this I tried such code:
	CompoundTerm ret = engine.rpc( 				
		new CompoundTermImpl(":",
			"problem",
			"test(V)"
			)
		);

Unfortunately it does not work. I get the following error:
    type error in type error in is_a_module("problem")

Of course earlier I have apriopriate
engine.rpc("use_module(\"problem.ecl\")");

Moreover I can call a predicate from a module using C interface.

I would be grateful for any explanation.

Best regards
--
[ Wit Jakuczun w.jakuczun_at_wlogsolutions.com ]
[ WLOG Solutions http://wlogsolutions.com   ]
Received on Tue May 27 2008 - 13:47:42 CEST

This archive was generated by hypermail 2.2.0 : Thu Feb 02 2012 - 02:31:58 CET