I use my own JAR file, which uses the Java library (JHDF5), which in turn uses the DLL through the JNI. When I use my own JAR file in MATLAB and then have to rebuild it during debugging, I get this error when I try to use it again after calling clear javaand creating a new object from my JAR file:
java.lang.UnsatisfiedLinkError:
Native Library C:\deka\proj\java\ESPDF\dist\lib\jhdf5.dll
already loaded in another classloader
and I cannot solve it without closing MATLAB and rediscovering what is a pain in the neck.
What is this error and whose error is it? (mine? MATLAB? JHDF5 so as not to free the DLL or to check if it is loaded)
source
share