Native library (darwin-x86-64/libbitwarden_c.dylib) not found in resource path #1088
Open
1 task done
Labels
bug
Something isn't working
Steps To Reproduce
Use Java bindings for a real world project and deploy it to different host architectures
Expected Result
Java bindings allow to use the Bitwarden Secrets Manager SDK on all host architectures the bitwarden_c library was compiled for
Actual Result
Native library (darwin-x86-64/libbitwarden_c.dylib) not found in resource path.
The same happens for Linux.
Screenshots or Videos
Additional Context
I used the Secrets Manager SDK Java bindings to build a Java application, that is a plug-in for Cryptomator, to store vault passwords in Bitwarden Secrets Manager.
Cryptomator is available for Windows, Linux and Mac, both Apple Intel and Apple Silicon. So the plug-in, using the SDK, should work on these host architectures .
The latest Maven artifact you released does not work an any architecture. The reason is a wong layout in the generated resource jar file. It contains a
release
path, so that the containedlibbitwarden_c.dylib
is stored underdarwin-x86-64/release/libbitwarden_c.dylib
, where the class loader can't find it.Removing the
release
part of the path solves the issue for all architectiues.Operating System
macOS
Operating System Version
No response
Build Version
1.0.0
Issue Tracking Info
The text was updated successfully, but these errors were encountered: