public final class NativeUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
loadLibraryFromClasspath(java.lang.String libraryPathInJar)
Loads a native library stored on our classpath by extracting it to a temporary location and invoking
System.load(java.lang.String) on it |
static boolean |
runningOnArchitecture(java.lang.String architecture) |
static boolean |
runningOnLinux() |
static boolean |
runningOnMac() |
static boolean |
runningOnPPCArchitecture()
boolean : returns whether the current platform is PowerPC, LE only
|
public static boolean runningOnPPCArchitecture()
public static boolean runningOnArchitecture(java.lang.String architecture)
architecture
- Architecture to look forpublic static boolean runningOnMac()
public static boolean runningOnLinux()
public static boolean loadLibraryFromClasspath(java.lang.String libraryPathInJar)
System.load(java.lang.String)
on itlibraryPathInJar
- absolute path to the library file on the classpath