From d2c1a6e2d8bc31978f574001d3daedd185f0654f Mon Sep 17 00:00:00 2001 From: "Mateusz \"Serafin\" Gajewski" Date: Sat, 20 Jul 2024 09:32:18 +0200 Subject: [PATCH] Debug library loading --- src/test/java/io/airlift/compress/v2/HadoopNative.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/java/io/airlift/compress/v2/HadoopNative.java b/src/test/java/io/airlift/compress/v2/HadoopNative.java index 17b0146b..f0f463fa 100644 --- a/src/test/java/io/airlift/compress/v2/HadoopNative.java +++ b/src/test/java/io/airlift/compress/v2/HadoopNative.java @@ -92,6 +92,7 @@ private static void loadLibrary(String name) String libraryPath = getLibraryPath(name); URL url = HadoopNative.class.getResource(libraryPath); if (url == null) { + System.out.println("library not found: " + libraryPath); throw new RuntimeException("library not found: " + libraryPath); } @@ -101,6 +102,7 @@ private static void loadLibrary(String name) Files.copy(in, file.toPath(), StandardCopyOption.REPLACE_EXISTING); } + System.out.println("System.load(" + file.getAbsolutePath() + ")"); System.load(file.getAbsolutePath()); }