public final class NativeLibraryLoader
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
static void |
load(java.lang.String originalName,
java.lang.ClassLoader loader)
Load the given library with the specified
ClassLoader |
static void |
loadFirstAvailable(java.lang.ClassLoader loader,
java.lang.String... names)
Loads the first available library in the collection with the specified
ClassLoader . |
public static void loadFirstAvailable(java.lang.ClassLoader loader, java.lang.String... names)
ClassLoader
.java.lang.IllegalArgumentException
- if none of the given libraries load successfully.public static void load(java.lang.String originalName, java.lang.ClassLoader loader)
ClassLoader