Skip to content

Commit

Permalink
fix: Ensure to load resource with global class loader (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
gudzpoz authored Oct 8, 2024
1 parent 021ae3e commit 64e1dcb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public void load (String libraryName) {

private InputStream readFile (String path) {
if (nativesJar == null) {
InputStream input = SharedLibraryLoader.class.getResourceAsStream("/" + path);
InputStream input = SharedLibraryLoader.class.getClassLoader().getResourceAsStream(path);
if (input == null) throw new SharedLibraryLoadRuntimeException("Unable to read file for extraction: " + path);
return input;
}
Expand Down

0 comments on commit 64e1dcb

Please sign in to comment.