Skip to content

Commit

Permalink
Debug library loading
Browse files Browse the repository at this point in the history
  • Loading branch information
wendigo committed Jul 20, 2024
1 parent 4626f90 commit d2c1a6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/java/io/airlift/compress/v2/HadoopNative.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand All @@ -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());
}

Expand Down

0 comments on commit d2c1a6e

Please sign in to comment.