I m having an issue with loading a simple .dll through java s System.loadLibrary("name.dll"); I have one copy of the dll in C:libraries ame.dll as well as another copy in the system32 folder. Note that C:libraries is NOT in my path environment variable. For some reason, when I call System.loadLibrary("name.dll"), I am getting:
java.lang.UnsatisfiedLinkError: Can t load library: C:libraries
ame.dll
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1706)
at java.lang.Runtime.load0(Runtime.java:770)
at java.lang.System.load(System.java:1003)
即使在我从 C: libraries 移除了名字. dll 之后, 我仍然会收到同样的错误 。 系统. load 在一个不在路径中的地方找到. dll 是否有任何理由? 为什么即使在文件被删除之后它仍然在那个地方寻找?