Project

Profile

Help

Bug #5344

open

java.lang.UnsatisfiedLinkError: Can't load library: /C:/Program Files/Saxonica/SaxonC EE 11.2/samples/cppTests/cppExtensionFunction.dll

Added by O'Neil Delpratt about 2 years ago. Updated about 2 years ago.

Status:
In Progress
Priority:
Normal
Category:
Saxon Internal
Start date:
2022-02-21
Due date:
% Done:

100%

Estimated time:
Found in version:
111.2
Fixed in version:
Platforms:

Description

Reported by user in the forum post: https://saxonica.plan.io/boards/4/topics/8562

Writing an extension function on Windows C++ and PHP currently fails with the following error message:

 java.lang.UnsatisfiedLinkError: Can't load library: /C:/Program Files/Saxonica/SaxonC EE 11.2/samples/cppTests/cppExtensionFunction.dll

The failure is in the Java code. We incorrectly create a leading slash: We are failing resolve the file path. Specifically the cwd is not currently been passed and we fail the fallback of using the SAXONC_HOME environment variable.

Actions #1

Updated by O'Neil Delpratt about 2 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 100

Bug fixed in the NativeCall class. Committed to git repos. Testing required

Actions #2

Updated by O'Neil Delpratt about 2 years ago

I am looking at this bug issue again as I am getting a similar failure on linux:

java.lang.UnsatisfiedLinkError: Can't load library: /home/location/samples/cppTests/cppExtensionFunction.so

Please register to edit this issue

Also available in: Atom PDF