Daren Burke
10/09/2025, 11:28 AMClassLoader classLoader = FileUtil.class.getClassLoader();
try (InputStream inputStream = classLoader.getResourceAsStream(resourceFile)) {
Files.copy(inputStream, config.toPath(), StandardCopyOption.REPLACE_EXISTING);
}
The inputStream is null when running on windows, though the jar properly has the file in it, and the path to the resourceFile is correct.
Any ideas why Windows classloader would have different results?Vampire
10/09/2025, 11:51 AMDaren Burke
10/09/2025, 11:55 AMVampire
10/09/2025, 11:56 AM