@Override public String findLibrary(String name){
  String systemName=System.mapLibraryName(name);
  ArrayList<Loader> loaders=getLoaders();
  for (int i=0; i < loaders.size(); i++) {
    Loader loader=loaders.get(i);
    Path path=loader.getPath(systemName);
    if (path != null && path.canRead()) {
      return path.getNativePath();
    }
    path=loader.getPath("native/" + systemName);
    if (path != null && path.canRead()) {
      return path.getNativePath();
    }
  }
  for (int i=0; i < _nativePath.size(); i++) {
    Path path=_nativePath.get(i);
    if (path.canRead())     return path.getNativePath();
  }
  return super.findLibrary(name);
}

@ Override public String findLibrary ( String name ) { String systemName = System . mapLibraryName ( name ) ; ArrayList < Loader > loaders = getLoaders ( ) ; for ( int i = 0 ; i < loaders . size ( ) ; i ++ ) { Loader loader = loaders . get ( i ) ; Path path = loader . getPath ( systemName ) ; if ( path != null && path . canRead ( ) ) { return path . getNativePath ( ) ; } path = loader . getPath ( "native/" + systemName ) ; if ( path != null && path . canRead ( ) ) { return path . getNativePath ( ) ; } } for ( int i = 0 ; i < _nativePath . size ( ) ; i ++ ) { Path path = _nativePath . get ( i ) ; if ( path . canRead ( ) ) return path . getNativePath ( ) ; } return super . findLibrary ( name ) ; }
returns the full library path for the name .
