Know your ISP.

User #221431   271 posts
Forum Regular

Has anyone interfaced gnuprolog with Java? If so, can you please direct me to some examples using the gnuprolog classes?

Any assistance would be appreciated most ardently.

posted 2008-May-11, 6pm AEST
User #44690   10550 posts
Whirlpool Forums Addict

What an unusual combination!

GNU Prolog only has a C interface, as far as I know -- both Prolog->C and C->Prolog calls are supported.

Would it be possible to change your Prolog implementation? SWI Prolog, for instance, has a Java interface. There are some Prolog implementations written in pure Java, as well.

posted 2008-May-11, 7pm AEST
User #221431   271 posts
Forum Regular

It is! I have a rather complex Java application which needs to be extended to use the logic of prolog. Don't worry, this isn't a university assignment :-)

I am aware of header files in C, which enable the use of prolog in C applications. GNU Prolog has been extended with the development of Java classes, which provides the ability of prolog to be used with Java applications. I just need some examples.

posted 2008-May-11, 7pm AEST
User #146591   993 posts
Whirlpool Enthusiast

Java<->C<->Prolog

However I am not sure where you'd find any examples.

posted 2008-May-11, 9pm AEST
User #36572   3462 posts
Whirlpool Forums Addict

Cling Wrap writes...

Java<->C<->Prolog

Hmmm, I've been meaning to really look into Qt Jambi for a while but never got time to do it:

trolltech.com/products/q...ge-support/index

It promises C++ (Qt) and Java integration.

posted 2008-May-12, 10am AEST
User #221431   271 posts
Forum Regular

I really don't want to go down the road of Java -> C -> Prolog, considering GNU Prolog have released classes that enable the use of Prolog in Java. Finding someone that has actually used it is quite a task.

posted 2008-May-12, 11am AEST
User #44690   10550 posts
Whirlpool Forums Addict

Java_Queen writes...

considering GNU Prolog have released classes that enable the use of Prolog in Java.

Really? The only thing Google gave me was this, which looks both unofficial and dead.

posted 2008-May-12, 5pm AEST
User #221431   271 posts
Forum Regular

They haven't extended it, but it has been used. Academic papers have been published showing the use of GNU Prolog with Java, but those authors don't give examples.

posted 2008-May-12, 7pm AEST
Hosted by
WebCentral Australia
Big numbers
953,520 threads
16,776,687 posts
1,967,775 whims sent
2,997 wiki topics
237 ISPs listed
8,069 broadband plans
803 modems & routers
39,403 features filled