Re: JPL error
Paul Singleton <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Organization | Jambusters Ltd |
| Message-ID | <[email protected]> |
On 31/07/2013 20:59, Jerry wrote:
> There may be a problem with JPL in the current stable release. I have been
> successfully using JPL since early July. Today, I uninstalled the 64 bit
> windows version and reinstalled it as I was trying to determine if I had a
> good compiled version of my application. At this point my application was
> no longer able to initialize java. I have a compiled version from earlier
> today that works. That was compiled with a 64 bit prolog version that I
> downloaded earlier this month. I can run the earlier compiled version and
> then go to the jpl examples from the packages directory which do not run.
> That implies all the environment variables are pointing to the right places.
>
> Here is the error I am getting:
If you start a fresh instance of SWI-Prolog (console or win) and do
?- jpl_new('java.util.Date', [], X).
(or anything which wakes JPL up), you should see a message from Jan
% Added [C:\Program Files\Java\jdk1.7.0_17\jre\bin\client,C:\Program
Files\Java\jdk1.7.0_17\jre\bin,C:\Program Files\Java\jdk1.7.0_17\bin]
to %PATH%
What do you see, and does it make sense?
I think Jan gets these paths from the registry; if you then see a
popup saying jvm.dll cannot be found, they may be wrong, perhaps
because of an incomplete un/reinstallation of a JRE?
Paul Singleton
> ERROR: c:/program files/swipl/library/jpl.pl:4637:
> '$open_shared_object'/3: The specified module could not be found.
> ERROR: c:/program files/swipl/doc/packages/examples/jpl/prolog/
> jpl_versions_demo.pl:1:
> Exported procedure jpl:jpl_c_lib_version/1 is not defined
> % library(jpl) compiled into jpl 0.05 sec, 2,232 clauses
> ERROR: c:/program files/swipl/doc/packages/examples/jpl/prolog/
> jpl_versions_demo.pl:22:
> jpl:jFindClass/2: Undefined procedure: jpl:jni_func/3
> Warning: c:/program files/swipl/doc/packages/examples/jpl/prolog/
> jpl_versions_demo.pl:22:
> Goal (directive) failed: user:jpl_versions_demo
> % c:/Program Files/swipl/doc/packages/examples/jpl/prolog/
> jpl_versions_demo.pl compiled 0.05 sec, 2,238 clauses
> I also get a popup stating that jvm.dll cannot be found. As stated, the
> earlier compiled version runs fine. I looked for earlier versions of 64 bit
> windows and the earliest I saw was from July 24th. I tried that one and got
> the same error.
>
> Any ideas?
> Thanks!
>
> Jerry
> -------------- next part --------------
> HTML attachment scrubbed and removed
> _______________________________________________
> SWI-Prolog mailing list
> [email protected]
> https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog
>