Closed rzese closed 3 years ago
Hard to say. jpl and the jvm dlls are not in the process modules because it cannot load them. If it works the other way around, use win_process_modules/1 in that config and see whether you have missed some directory or you have a directory in %PATH% that should not be there and it gets a conflicting file from some other location.
I have cleaned up my JDKs and environment variables. Now, magically, it works :) Probably there were some conflicting files as you suggested.
Many thanks
Dear all, I have a problem similar to #92, but from the other side. I am trying to load JPL from Prolog. I should have set properly all the environmental variables, I am using the daily binaries. If I call Prolog from Java, everything works fine. If I try to load JPL library from Prolog using the command
[library(jpl)].
I getI have also called win_process_modules/1, which returns: c:/program files/swipl/bin/swipl.exe, c:/windows/system32/ntdll.dll, c:/windows/system32/kernel32.dll, c:/windows/system32/kernelbase.dll, c:/windows/system32/msvcrt.dll, c:/program files/swipl/bin/libswipl.dll, c:/windows/system32/advapi32.dll, c:/windows/system32/sechost.dll, c:/windows/system32/rpcrt4.dll, c:/windows/system32/psapi.dll, c:/windows/system32/shell32.dll, c:/windows/system32/msvcp_win.dll, c:/windows/system32/ucrtbase.dll, c:/program files/swipl/bin/libgcc_s_seh-1.dll, c:/program files/swipl/bin/libwinpthread-1.dll, c:/windows/system32/user32.dll, c:/windows/system32/win32u.dll, c:/windows/system32/gdi32.dll, c:/windows/system32/gdi32full.dll, c:/windows/system32/ws2_32.dll, c:/windows/system32/winmm.dll, c:/program files/swipl/bin/libgmp-10.dll, c:/program files/swipl/bin/zlib1.dll, c:/windows/system32/imm32.dll, c:/windows/system32/windows.storage.dll, c:/windows/system32/combase.dll, c:/windows/system32/wldp.dll, c:/windows/system32/shcore.dll, c:/windows/system32/shlwapi.dll, c:/windows/system32/profapi.dll
Here I cannot see the jvm.dll, I don't know if this could be the problem. However, JAVA_HOME is set to C:\Program Files\AdoptOpenJDK\jre-8.0.292.10-hotspot and in PATH I have both %JAVA_HOME%\bin and %JAVA_HOME%\bin\server.
Any idea to solve the problem? Thank you