MCPcopy Create free account
hub / github.com/VowpalWabbit/vowpal_wabbit / getLibraryName

Method getLibraryName

java/src/main/java/common/Native.java:47–56  ·  view source on GitHub ↗

Returns the platform-specific library file name.

()

Source from the content-addressed store, hash-verified

45 * Returns the platform-specific library file name.
46 */
47 private static String getLibraryName() {
48 String os = System.getProperty("os.name", "").toLowerCase();
49 if (os.contains("win")) {
50 return "vw_jni.dll";
51 } else if (os.contains("mac") || os.contains("darwin")) {
52 return "libvw_jni.dylib";
53 } else {
54 return "libvw_jni.so";
55 }
56 }
57
58 private static void try_load_from_path() {
59 System.loadLibrary("vw_jni");

Callers 1

NativeClass · 0.95

Calls 1

containsMethod · 0.80

Tested by

no test coverage detected