diff --git a/src/main/java/co/libly/hydride/utils/LibraryLoader.java b/src/main/java/co/libly/hydride/utils/LibraryLoader.java index 62b3f69..9684a9f 100644 --- a/src/main/java/co/libly/hydride/utils/LibraryLoader.java +++ b/src/main/java/co/libly/hydride/utils/LibraryLoader.java @@ -284,16 +284,15 @@ private static boolean isPosixCompliant() { } // VisibleForTesting - static File createTempDirectory() throws IOException { + static File createTempDirectory() { String tempDir = System.getProperty("java.io.tmpdir"); File hydrideDirectory = new File(tempDir, "hydride"); - if (hydrideDirectory.mkdir()) { - hydrideDirectory.deleteOnExit(); - } + hydrideDirectory.mkdir(); + hydrideDirectory.deleteOnExit(); return hydrideDirectory; } - public void setPermissions(File file) throws IOException{ + private void setPermissions(File file) throws IOException{ Set perms = new HashSet<>(); perms.add(PosixFilePermission.OWNER_READ); perms.add(PosixFilePermission.OWNER_WRITE); diff --git a/src/main/resources/windows/libhydrogen.dll b/src/main/resources/windows/libhydrogen.dll new file mode 100755 index 0000000..4cc9c4f Binary files /dev/null and b/src/main/resources/windows/libhydrogen.dll differ diff --git a/src/main/resources/windows64/libhydrogen.dll b/src/main/resources/windows64/libhydrogen.dll new file mode 100755 index 0000000..bfeb7e8 Binary files /dev/null and b/src/main/resources/windows64/libhydrogen.dll differ