You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in thread "main" java.lang.UnsatisfiedLinkError: 'com.cedarpolicy.model.policy.PolicySet com.cedarpolicy.model.policy.PolicySet.parsePoliciesJni(java.lang.String)'
at com.cedarpolicy.model.policy.PolicySet.parsePoliciesJni(Native Method)
at com.cedarpolicy.model.policy.PolicySet.parsePolicies(PolicySet.java:128)
at org.example.Main.main(Main.java:8)
Additional configuration
No response
Operating System
Windows 10
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered:
drnta
changed the title
UnsatisfiedLinkError on Windows with bundled native cedar_java_ffi.dll
UnsatisfiedLinkError on Windows with bundled cedar_java_ffi.dll
Mar 6, 2025
Before opening, please confirm:
Bug Category
Other
Describe the bug
The attempt to execute simple Java application with cedar-java-uber dependency
on Windows 10 environment fails with
UnsatisfiedLinkError
. Looks like the dll does not export the Java functions.Probably the cause can be in
zigbuild
usage.For the bundled
dll
thedumpbin
showsThe same Java code works successfully with
cedar_java_ffi.dll
built locally usingand forced using
CEDAR_JAVA_FFI_LIB
env variable.The dumpbin for this dll shows the exported Java functions
Expected behavior
The code works with bundled windows dll
Reproduction steps
See description
Code Snippet
Log output
Additional configuration
No response
Operating System
Windows 10
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: