From 27291864fa1d992f17316994f76459495c336f93 Mon Sep 17 00:00:00 2001 From: damencho Date: Tue, 19 Mar 2024 16:28:28 -0500 Subject: [PATCH] fix: Fixes loading libraries from absolute path. --- src/main/java/org/jitsi/utils/JNIUtils.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/jitsi/utils/JNIUtils.java b/src/main/java/org/jitsi/utils/JNIUtils.java index 3e9533c..e9b36b3 100644 --- a/src/main/java/org/jitsi/utils/JNIUtils.java +++ b/src/main/java/org/jitsi/utils/JNIUtils.java @@ -139,7 +139,14 @@ private static void loadNativeInClassloader( } catch (Exception e) { - System.loadLibrary(lib); + if (isAbsolute) + { + System.load(lib); + } + else + { + System.loadLibrary(lib); + } } }