Class NativeLibraryLoader

java.lang.Object
io.github.fherbreteau.vodozemac.NativeLibraryLoader

public final class NativeLibraryLoader extends Object
Handles loading of the native vodozemac library for the current platform.

The native library is extracted from the classpath (JAR resources) to a temporary directory and loaded via System.load(String)RESTRICTED. Owner-only file permissions are set on the extracted library for security.

This class is used internally by the vodozemac bindings and should not be called directly by application code.

Author:
François HERBRETEAU
  • Method Details

    • loadLibrary

      public static void loadLibrary()
      Loads the native vodozemac library for the current platform.

      This method is idempotent — subsequent calls after the first successful load are no-ops.

      Throws:
      RuntimeException - if the native library cannot be found or loaded