code: private static boolean loadNativeLibrary(String path, String name) {
          File libPath = new File(path, name);
          if(libPath.exists()) {
  
              try {
                  System.load(new File(path, name).getAbsolutePath());
                  return true;
              }
              catch(UnsatisfiedLinkError e) {
                  System.err.println("Failed to load native library:" + name + ". osinfo: " + OSInfo.getNativeLibFolderPathForCurrentOS());
                  System.err.println(e);
                  return false;
              }
  
          }
          else {
              return false;
          }
      }
docs: Loads native library using the given path and name of the library.
  
  @param path Path of the native library.
  @param name Name  of the native library.
  @return True for successfully loading; false otherwise.