public class NativeLibraryLoader extends Object
Class NativeLibraryLoader
This class allows to dynamically load native libraries from .jar files (also works with IDE) with updating java.library.path variable| Modifier and Type | Method and Description |
|---|---|
static String |
getOsName()
Method returns formatted OS name
|
static void |
loadLibraryFromJar(String folder,
String[] libs)
Public method for external usage, copies all files from `folder`
|
public static void loadLibraryFromJar(String folder, String[] libs) throws MSDKException, IOException
Loads libraries from `folder` in order specified by `libs` array
The folder structure is strict folder -windows64 --lib1 --lib2 -windows32 -- lib -linux64 -- lib1 ... -linux32" -- lib1 ... -mac64 --lib1 ...folder - - specify the name of the library to be loaded (example - glpk_4_60)libs - - array of exact names of libraries (without extensions)MSDKException - if anyIOException - if anypublic static String getOsName() throws MSDKException
Method returns formatted OS name
MSDKException - - if anyCopyright © 2019. All rights reserved.