-
Notifications
You must be signed in to change notification settings - Fork 90
Open
Description
hi
What a good library the NativeUtils is!
NativeUtils works pretty nice.
By using code below,I can load different native library on different platform.
is that necessary to encapsulate System.mapLibraryName()
into NativeUtils
?
// mapLibraryName() return a platform-dependent native library name
// we get "libHelloJNI.dll" on windows
// we get "libHelloJNI.so" on linux
String libraryName = System.mapLibraryName("libHelloJNI");
NativeUtils.loadLibraryFromJar("/"+libraryName);
Metadata
Metadata
Assignees
Labels
No labels