diff --git a/make/java/lib/util.class b/make/java/lib/util.class index f7691bc1..f1ee9fa2 100644 Binary files a/make/java/lib/util.class and b/make/java/lib/util.class differ diff --git a/make/java/lib/util.java b/make/java/lib/util.java index 0063edc5..77fa3523 100644 --- a/make/java/lib/util.java +++ b/make/java/lib/util.java @@ -114,12 +114,12 @@ public static void write(File file, String string) throws IOException { } public static void unzip(File zipFile, File directory) throws IOException { - directory.mkdirs(); try (ZipInputStream zip = new ZipInputStream(new FileInputStream(zipFile))) { ZipEntry entry; while ((entry = zip.getNextEntry()) != null) { File destFile = new File(directory, entry.getName()); if (!entry.isDirectory()) { + destFile.getParentFile().mkdirs(); try (BufferedOutputStream os = new BufferedOutputStream(new FileOutputStream(destFile))) { byte[] bytes = new byte[1024]; int read = 0;