gary-rowe / hid4java

A cross-platform Java Native Access (JNA) wrapper for the libusb/hidapi library. Works out of the box on Windows/Mac/Linux.
MIT License
229 stars 71 forks source link

Used in systems with security policies:failed to map segment from shared object #157

Closed chn-maich closed 1 month ago

chn-maich commented 1 month ago

Due to security policy restrictions on my system, it is not possible to run precompiled files in jar files. Is there a way to configure external dependencies like "jna. library. path"

error: ava.lang.UnsatisfiedLinkError: /root/.cache/JNA/temp/jna6456692509398733775.tmp: /root/.cache/JNA/temp/jna6456692509398733775.tmp:failed to map segment from shared object

Masterxilo commented 1 month ago

from the error message it looks like you are running as /root anyways - just disable the policy?