diff --git a/src/main/java/com/glencoesoftware/bioformats2raw/Converter.java b/src/main/java/com/glencoesoftware/bioformats2raw/Converter.java index 0745c0e..b972eda 100644 --- a/src/main/java/com/glencoesoftware/bioformats2raw/Converter.java +++ b/src/main/java/com/glencoesoftware/bioformats2raw/Converter.java @@ -1185,11 +1185,11 @@ public Integer call() throws Exception { // expect 'success' to be true in the noexec case, even though // the file will not actually be executable boolean success = tmpdirCheck.setExecutable(true); - tmpdirCheck.deleteOnExit(); if (!success || !tmpdirCheck.canExecute()) { throw new RuntimeException(System.getProperty("java.io.tmpdir") + " is noexec; fix it or specify a different java.io.tmpdir"); } + tmpdirCheck.delete(); OpenCVTools.loadOpenCV();