void function ( final String arg0 ) { try { System . loadLibrary ( sharedLibraryName ) ; } catch ( final UnsatisfiedLinkError loc0 ) { try { System . loadLibrary ( jniLibraryName ) ; } catch ( final UnsatisfiedLinkError loc1 ) { loadLibraryFromJar ( arg0 ) ; } } }
firstly attempts to load the library from java.library.path , if that fails then it falls back to extracting the library from the classpath org.rocksdb.nativelibraryloader #loadlibraryfromjar java.lang.string concode_field_sep String sharedLibraryName concode_elem_sep String tempFilePrefix concode_elem_sep NativeLibraryLoader instance concode_elem_sep String jniLibraryName concode_elem_sep String jniLibraryFileName concode_elem_sep String tempFileSuffix concode_elem_sep boolean initialized concode_field_sep File loadLibraryFromJarToTemp concode_elem_sep NativeLibraryLoader getInstance concode_elem_sep void loadLibraryFromJar