Bugzilla – Bug 2
Error on windows 7 64-bit version with loading JPL library
Last modified: 2011-06-19 22:34:39 CEST
Created attachment 1 [details] Comparison between JPL 32-bit and 64-bit, on 64-bit windows 7 Overview: - When the query "use_module(library(jpl))" is entered the following error occurs: 1 ?- use_module(library(jpl)). % library(error) compiled into error 0.00 sec, 18,264 bytes % library(lists) compiled into lists 0.00 sec, 46,152 bytes ERROR: c:/program files/pl/library/jpl.pl:4637: '$open_shared_object'/3: %1 is geen geldige Win32-toepassing. ERROR: c:/program files/pl/library/jpl.pl:4637: library `java' does not exist (Please add directory holding java.dll to %LD_LIBRARY_PATH%) Warning: c:/program files/pl/library/jpl.pl:4637: Goal (directive) failed: jpl:initialization(setup_jvm,now) ERROR: c:/program files/pl/library/jpl.pl:4638: Exported procedure jpl:jpl_c_lib_version/1 is not defined % library(jpl) compiled into jpl 0.06 sec, 724,128 bytes true. 2 ?- - Steps: 1. Installed the 64-bit binary for the first time. 2. When I saw it didn't work I re-installed it, but that didn't help. 3. Then I uninstalled it and installed the 32-bit binary which did work. 4. Then I re-installed the 64-bit binary which still has the same issue (see attachment). - Actual results: - Prolog generates an error but does not crash. - Note: "geen geldige Win32-toepassing" means "not a valid Win32 application" - Expected results: - Just loading the library. - Specs: SWI-Prolog (Multi-threaded, 64 bits, Version 5.10.4), downloaded and installed on June 19, 2011. OS: windows 7 64-bit Processor: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHZ 2.00 GHz (if anything else is needed, let me know) - Workaround: - The 32-bit binary works like a charm (see attachment, I have now installed both) - Possible solutions: - I'm no expert on this but the LD_LIBRARY_PATH error I recognize from when I tried JPL on my Ubuntu system (which works fine now). Perhaps some cross-platform problem?