diff --git a/crux-util/src/main/java/com/fizzed/crux/util/Resources.java b/crux-util/src/main/java/com/fizzed/crux/util/Resources.java index 5ee6856..7c15a74 100644 --- a/crux-util/src/main/java/com/fizzed/crux/util/Resources.java +++ b/crux-util/src/main/java/com/fizzed/crux/util/Resources.java @@ -134,7 +134,7 @@ static public void file(String resourceName, BiConsumer consumer) // we'll skip the file: part too String jarPath = jarPathAndInnerFile.substring(5, sepPos); String filePath = jarPathAndInnerFile.substring(sepPos + 1); - try (FileSystem fs = FileSystems.newFileSystem(Paths.get(jarPath), null)) { + try (FileSystem fs = FileSystems.newFileSystem(Paths.get(jarPath), Resources.class.getClassLoader())) { consumer.accept(false, fs.getPath(filePath)); return; }