Well, there are a few ways to load a dll into your Java programs. One of them is by using the Class.forName method, something like loading a .jar driver when connecting to RDBMS from Java.
Which in turn will load the library if the class has a static initializer block that calls System.load or System.loadLibrary. Without such a block nothing will be loaded.