Re: Java counterpart to PL_initialise()

Paul Singleton <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Organization Jambusters Ltd
Message-ID <[email protected]>
On 12/07/2013 11:39, Roberto Bagnara wrote:
>
> Hi there.
>
> 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.

Paul Singleton

> Kind regards,
>
>     Roberto
>
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.