Class NativeLibrary

java.lang.Object
org.apache.opendal.NativeLibrary

public class NativeLibrary extends Object
Utility for loading the native library.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Try load the native library from the following locations: Load from the system dynamic library (opendal_java), the search path can be configured via -Djava.library.path.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NativeLibrary

      public NativeLibrary()
  • Method Details

    • loadLibrary

      public static void loadLibrary()
      Try load the native library from the following locations:
      1. Load from the system dynamic library (opendal_java), the search path can be configured via -Djava.library.path.
      2. Load from the bundled library in the classpath (/native/{classifier}/{libraryName}). You can use the prebuilt library:
        • org.apache.opendal:opendal-{version}-linux-x86_64
        • org.apache.opendal:opendal-{version}-linux-aarch_64
        • org.apache.opendal:opendal-{version}-osx-x86_64
        • org.apache.opendal:opendal-{version}-osx-aarch_64
        • org.apache.opendal:opendal-{version}-windows-x86_64