UnsatisfiedLinkError "Access Denied" even with full control

I get java.lang.UnsatisfiedLinkError from java.lang.ClassLoader $ NativeLibrary.load () with the message "Access denied." The DLL is loaded from a network share via the UNC path. Previously, it worked without errors on other network resources (I was told by the system administrator that this particular resource is larger than “originally Windows”), so my first instinct was to use cacls to provide full access to the DLL file for both everyone and everyone user running java code. When I look at the properties of a DLL in Windows Explorer, it clearly has these permissions, and yet it still does not work with this error. Any ideas?

+3
source share
2 answers

One possibility is that this DLL, in turn, tries to load other DLLs that have not received sufficient permissions.

+3
source

Run it as a system administrator and it will work for sure. I had the same problem and I started Eclipse as an administrator and it worked.

0
source

Source: https://habr.com/ru/post/1784420/


All Articles