Class NativeLibraryLoader


  • @ThreadSafe
    public class NativeLibraryLoader
    extends Object
    Static helper for loading libraries
    • Constructor Detail

      • NativeLibraryLoader

        public NativeLibraryLoader​(@Nonnull
                                   org.apache.logging.log4j.Logger log)
    • Method Detail

      • loadNativeLibrary

        public boolean loadNativeLibrary​(String fullPath,
                                         String libraryName)
        Attempts to load the native library by trying a library file first and if it fails then trying the library name
        Parameters:
        fullPath - Full path to the library file (with or without the extension) - Optional
        libraryName - Library name - Optional
        Returns:
        Whether the library was loaded OK