title: JPL/SWI Prolog configuration failure
body: <p>I'm configuring the JPL right now, and wanna work with swi-prolog using java.</p>
  
  <p>I downloaded the newest stable version of SWI-Prolog, which is 6.2.0, and installed in D:\swipl</p>
  
  <p>First, I added the following path to the PATH virable: D:\swipl\bin, which should include all dll files needed.</p>
  
  <p>Then, I added the following path to the CLASSPATH virable: D:swipl\lib\jpl.jar, which should be the jar file needed.</p>
  
  <p>When I tried to run the versions example provided, I got the following error:</p>
  
  <pre><code>Exception in thread "main" java.lang.UnsatisfiedLinkError: jpl.fli.Prolog.thread_self()I
      at jpl.fli.Prolog.thread_self(Native Method)
      at jpl.Query.open(Query.java:286)
      at jpl.Util.textToTerm(Util.java:162)
      at jpl.Query.Query1(Query.java:183)
      at jpl.Query.&lt;init&gt;(Query.java:176)
      at Versions.main(Versions.java:11)
  </code></pre>
  
  <p>After searching online, I found that many people just get <code>java.lang.UnsatisfiedLinkError: no jpl in java.library.path</code> which is because of the setting for the <code>PATH</code> variable, rather than the error I get here: <code>java.lang.UnsatisfiedLinkError: jpl.fli.Prolog.thread_self()I</code> (and yes, there is a "I" at the end of the line).</p>
  
  <p>Has anyone gotten this error before? I've tried several previous version of SWI-Prolog, but also got other kinds of errors. I'm using Eclipse IDE for Java development -- have I missed anything?</p>