Skip to content

Commit

Permalink
fix: Ensure to load resource with global class loader
Browse files Browse the repository at this point in the history
  • Loading branch information
gudzpoz committed Mar 15, 2024
1 parent bc9e53a commit f2a356f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,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 f2a356f

Please sign in to comment.