javawindowsjava-native-interfacedll

UnsatisfiedLinkError "Access is denied" even with Full Control


I'm getting a java.lang.UnsatisfiedLinkError from java.lang.ClassLoader$NativeLibrary.load() with the message "Access is denied". The DLL is being loaded from a network share via a UNC path. It previously worked without error on other network shares (I have been told by a sysadmin that this particular share is more "natively Windows"), so my first instinct was to use cacls to grant Full Control on the DLL file both for Everyone and the specific user running the Java code. When I view the DLL Properties in Windows Explorer, it clearly has those permissions set, and yet it is still failing with this error. Any ideas?


Solution

  • One possibility is that this dll is, in turn, trying to load other dlls, which have not been given sufficient permissions.