public final class NativeLibraryLoader extends Object
System.loadLibrary(String), upon failure falls back to the base directory of the given class package or the jar the class is in. This way, a native library is found, if it located in the same directory as a particular jar, identified by a specific class from that jar.
|Modifier and Type||Method and Description|
Finds a file that is either in the classpath or in the same directory as a given class's jar.
Loads a library.
libName- name of the library, as described in
baseClass- class that identifies the jar
public static String findFile(String name, Class baseClass, FileFilter filter) throws FileNotFoundException
name- (partial) filename
baseClass- base class
filter- filter that determines whether a file is a match
FileNotFoundException- if a matching file cannot be found
Copyright © 2006–2018 tagtraum industries incorporated. All rights reserved.