The Microsoft VM will not attempt to load the DLL until a method requiring it is actually called. Therefore, do not assume that the DLL load was successful simply because the Java class loaded successfully.
// This method is exported as ordinal #34.
/** @dll.import("MyDll",entrypoint="#34") */
public static native void MySample();