Re: Java counterpart to PL_initialise()

Roberto Bagnara <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Organization Department of Mathematics and Computer Science, University of Parma, Italy
Message-ID <[email protected]>
On 07/12/13 13:26, Paul Singleton wrote:
> On 12/07/2013 11:39, Roberto Bagnara wrote:
>> We are working at an application whose main program is in Java.
>> Is there a Java counterpart to PL_initialise(), or is one supposed
>> to use JNI and invoke the C function?
> 
> If you're using JPL, don't invoke anything - SWI-Prolog will be initialised lazily (using default init args) when necessary (see the examples).
> 
> If you need a non default initialisation, call
> 
>   jpl.JPL.setDefaultInitArgs(String[] args)
> 
> before you do anything which triggers initialisation.

Thanks Paul!

-- 
     Prof. Roberto Bagnara

Applied Formal Methods Laboratory - University of Parma, Italy
mailto:[email protected]
                              BUGSENG srl - http://bugseng.com
                              mailto:[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.