diff --git a/src/main/java9/org/sqlite/nativeimage/SqliteJdbcFeature.java b/src/main/java9/org/sqlite/nativeimage/SqliteJdbcFeature.java index d346c7edd..05159b997 100644 --- a/src/main/java9/org/sqlite/nativeimage/SqliteJdbcFeature.java +++ b/src/main/java9/org/sqlite/nativeimage/SqliteJdbcFeature.java @@ -58,6 +58,7 @@ private void handleLibraryResources() { // the user is responsible to make sure the created native-image can actually find it. Path targetPath = Paths.get(exportLocation, libraryName); try (InputStream in = SQLiteJDBCLoader.class.getResourceAsStream(libraryResource)) { + Files.createDirectories(targetPath.getParent()); Files.copy(in, targetPath, StandardCopyOption.REPLACE_EXISTING); } catch (IOException e) { throw new SqliteJdbcFeatureException(e);