Returns the platform-specific library file name.
()
| 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"); |