Re: Prolog in a Java Tomcat environnement

From: Djamé Seddah (djame_at_jamais-de-la-vie.com)
Date: 11/23/04

  • Next message: Djamé Seddah: "Re: SWI-Prolog Java - JPL"
    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é
    >>
    >>
    >>
    >>
    >>
    >>
    >>
    >
    >
    >


  • Next message: Djamé Seddah: "Re: SWI-Prolog Java - JPL"

    Relevant Pages

    • Re: how to join java and prolog.
      ... JPL is quite simple. ... I guess these examples also run with SWI and K-Prolog. ... return query result from prolog to java. ...
      (comp.lang.prolog)
    • Re: Blaze Find Tool Bar
      ... Kathleen - Here's some help about installing/reinstalling a Java VM: ... Sun also offers an automatic download and install of the 1.4 Java plug-in ... >> programs report as spyware. ...
      (microsoft.public.windowsxp.general)
    • Re: If i download latest OE6 updates, will it update OE also ?
      ... Script Debugging Problem ... Where to get the JAVA VM ... Sun also offers an automatic download and install of the 1.4 Java plug-in ... It may, however, be Shockwave Flash related, try the following: ...
      (microsoft.public.windows.inetexplorer.ie6.browser)
    • Re: Microsoft websites screw up IE6(SP2)
      ... I won't get involved in the horrible java mess between MS and Sun. Let them ... > At this point I'm not sure if I agree that the fault lies with SP2. ... > websites compatible with Windows XP Home, which is what I'm running, ... >> JVM for IE (in install), or after install via the JavaPlugin control ...
      (microsoft.public.windows.inetexplorer.ie6.browser)
    • Re: Page Cannot be Displayed
      ... Script Debugging Problem ... Where to get the JAVA VM ... Sun also offers an automatic download and install of the 1.4 Java plug-in ... It may, however, be Shockwave Flash related, try the following: ...
      (microsoft.public.windows.inetexplorer.ie6.browser)