Package gov.nih.mipav.util
Class NativeLibraryLoader
- java.lang.Object
-
- gov.nih.mipav.util.NativeLibraryLoader
-
public class NativeLibraryLoader extends java.lang.Object
Static methods for extracting and loading native libraries that were previously loaded directly in the MIPAV JRE. JHDF5, JOCL, and J3D libraries are the ones currently included.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String[]
libList
-
Constructor Summary
Constructors Constructor Description NativeLibraryLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addDirToLibPath(java.lang.String s)
static java.lang.String
getArchString()
static java.lang.String
getNativeLibTmpDir()
static boolean
loadNativeLibraries()
Loads the MIPAV native libraries after extracting them.
-
-
-
Method Detail
-
loadNativeLibraries
public static boolean loadNativeLibraries()
Loads the MIPAV native libraries after extracting them.- Returns:
- False if there was a problem extracting/loading the libraries.
-
getNativeLibTmpDir
public static java.lang.String getNativeLibTmpDir()
-
getArchString
public static java.lang.String getArchString()
-
addDirToLibPath
public static void addDirToLibPath(java.lang.String s) throws java.io.IOException
- Throws:
java.io.IOException
-
-