简体   繁体   中英

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?

一种可能性是,这个dll反过来试图加载其他没有获得足够权限的dll。

Run it as System Administrator and it will work for sure. I had a same problem and ran the Eclipse as Administrator and it worked.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM