I got this when using System.loadLibrary which will use the java.libary.path resource.
Since absolute path isn't allowed by loadLibrary, you can use the absolute path and load method.
System.load(HelloWorld.class.getResource("/dlls/HelloWorld.dll")
.getPath());