Re: Prolog in a Java Tomcat environnement
From: Djamé Seddah (djame_at_jamais-de-la-vie.com)
Date: 11/23/04
- Previous message: Djamé Seddah: "Re: Prolog in a Java Tomcat environnement"
- Maybe in reply to: Djamé Seddah: "Prolog in a Java Tomcat environnement"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 23 Nov 2004 14:40:39 +0100
Paul Singleton a écrit :
> Djamé Seddah wrote:
>
>> I'm now upgrading to the latest stable version of swi because in mine
>> (5.4.2) the jpl package is not included so....
>
>
> It's a good idea to start with the latest stable release, but
> JPL was in 5.4.2
Yes, I though so too but here none so as I can't remember if I compiled
all the packages from the source tree, I'd rather prefer to get it
again......
>
> What platform? Windows? Linux? ???
I'm working on linux (mdk 10) but it has to pass all the available test
of my boss and she works on winXP so I have
to be carefull with install stuff and file naming, etc...
I presume I'll do it in two ways : install the swi binary version for
winXP and keep the source way for me
in fact, it will have to run in any posix machine where java works (so
I maybe have to make all this stuff work with my old powerbook under
linuxppc 2K....)
[I answer directly here and follow uip to c.l.p because I saw a guy was
testing the same thing so maybe it could help someone]
>
> What Java SDK do you use?
the last stable sun 1.4.2
>
> Ensure that the SDK bin folders are on your PATH
>
it is.
which java = /usr/local/JAVA/bin/java
java -version = java version "1.4.2_06"
> Ensure that SWI-Prolog's \bin folder is on your PATH
it is
which pl = /usr/local/bin/pl
Welcome to SWI-Prolog (Multi-threaded, Version 5.4.4)
>
> Run the JPL examples (Java and Prolog) to verify that your
> setup is OK
ok, first error : libjava.so not found, I presume this is a
LD_LIBRARY_PATH error
I must set up correctly my LD_LIBARY_PATH to
export
LD_LIBRARY_PATH=/usr/local/JAVA/jre/lib/i386:/usr/local/JAVA/jre/lib/i386/client
(is that normal ??)
and then
pl [jpl_version_demo]
and now it compiles but :
"prolog library version: 3.0.3-alpha
java library version: 3.0.3-alpha
c library version: 3.0.4-alpha
WHOOPS! you appear not to have the same version of each library installed"
So I guess somewhere I have a old installation goofing around but I
can't find any trace (locate, find, etc...)
never mind I lauchn jpl_color chooser and it works :)
all the examples prolog works. Cool
Ok, next round for me : try all the java example ........
Thanks for your help
>
> Define the API between Java and Prolog; keep it simple.
> Maybe write some extra Prolog wrappers for convenience
> when calling Prolog from Java
That's exactly my goals :)
Thanks again
>
> regards
>
> Paul
>
>>
>> In fact I'm going to integrate (sorry for the gallicism, to embedd ?)
>> my prolog programs which uses semweb into some wrapper class (maybe
>> bean) which will be dealt by jsp.... I thinks it's the easiest way to
>> work
>> here's my view (I put a jpeg file made by xfig)...
>> http://djame.seddah.free.fr/schemaProlog.jpg
>>
>>
>>
>> so prolog would have never to deal directly with html... everything
>> will pass trhough object (probably as string)...
>>
>> I have a question : is there a kind of reasonning integrate to the
>> semweb api : something like
>> if A is a subclass of B and B is a subclass of C then A is a subclass
>> of C ?
>> Or do I have to make my own inférence rules...
>>
>> the ontology I have to deal with has 48000 triples, I don't know if
>> it's a big one but the Jena api took forewer to load the ontology
>> whereas the semweb one took 13 second (on a overloaded PIII 700 with
>> 256 meg of ram)....
>>
>>
>> I'm installing everything and I let you know how the installation has
>> gone
>>
>>
>>
>> Djamé
>>
>>
>>
>>
>>
>>
>>
>
>
>
- Previous message: Djamé Seddah: "Re: Prolog in a Java Tomcat environnement"
- Maybe in reply to: Djamé Seddah: "Prolog in a Java Tomcat environnement"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|