I want to use System.load() to load a DLL file that is within the JAR. I tried
URL dllPath = MyClass.class.getResource("path/to/dll/folder");
System.load(dllPath.getPath().replace("file:/","")+"/"+dllName);
I get:
Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: path/to/jar/thejar.jar!/path/to/dll
Any ideas?