diff --git a/src/main/java/io/github/cdimascio/dotenv/internal/DotenvReader.java b/src/main/java/io/github/cdimascio/dotenv/internal/DotenvReader.java index 43bfce5..016a91c 100644 --- a/src/main/java/io/github/cdimascio/dotenv/internal/DotenvReader.java +++ b/src/main/java/io/github/cdimascio/dotenv/internal/DotenvReader.java @@ -42,9 +42,11 @@ public List read() throws DotenvException, IOException { String location = dir + "/" + filename; String lowerLocation = location.toLowerCase(); - Path path = lowerLocation.startsWith("file:") || lowerLocation.startsWith("android.resource:") - ? Paths.get(URI.create(location)) - : Paths.get(location); + Path path = ( + lowerLocation.startsWith("file:") + || lowerLocation.startsWith("android.resource:") + || lowerLocation.startsWith("jimfs:") + ) ? Paths.get(URI.create(location)) : Paths.get(location); if (Files.exists(path)) { return Files.readAllLines(path);