native-utils
                                
                                
                                
                                    native-utils copied to clipboard
                            
                            
                            
                        Auto map Library Name for different platform
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);
                                    
                                    
                                    
                                
look at mine: https://github.com/xuges/natives