diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/FernFlowerDecompiler.java b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/FernFlowerDecompiler.java index 71ca66b93..e3a4d9d59 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/FernFlowerDecompiler.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/FernFlowerDecompiler.java @@ -204,11 +204,12 @@ public void decompileToZip(String sourceJar, String zipName) { final File destination = new File(zipName); File tempInputJarFile = new File(sourceJar); - File tempOutputJar = new File(TEMP_DIRECTORY + FS + "temp" + FS + tempInputJarFile.getName()); + File tempOutputJar = new File(TEMP_DIRECTORY + "temp" + FS + tempInputJarFile.getName()); + tempOutputJar.getParentFile().mkdirs(); try { - ConsoleDecompiler.main(generateMainMethod(tempInputJarFile.getAbsolutePath(), TEMP_DIRECTORY + "./temp/")); + ConsoleDecompiler.main(generateMainMethod(tempInputJarFile.getAbsolutePath(), TEMP_DIRECTORY + "temp")); } catch (StackOverflowError | Exception ignored) {