I am developing Java classes that use native libraries. After several compile-debug cycles where I use "clear java" to purge the classes, I receive the following error when loading the newest version of my class:
Warning: A Java exception occurred trying to load the MatrixDriver class:
Java exception occurred:
java.lang.UnsatisfiedLinkError: Native Library D:\Work\jni\jnimatrixdriver.dll already loaded in another classloader
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at MatrixDriver.<clinit>(MatrixDriver.java:86)
> In repro at 1
??? No constructor MatrixDriver with matching signature found
Error in ==> repro at 1
j = MatrixDriver('bar')
Best Answer