Skip to content

Commit b8e9e73

Browse files
committed
Fix for issue #529.
1 parent 575145e commit b8e9e73

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/FernFlowerDecompiler.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,12 @@ public void decompileToZip(String sourceJar, String zipName)
204204
{
205205
final File destination = new File(zipName);
206206
File tempInputJarFile = new File(sourceJar);
207-
File tempOutputJar = new File(TEMP_DIRECTORY + FS + "temp" + FS + tempInputJarFile.getName());
207+
File tempOutputJar = new File(TEMP_DIRECTORY + "temp" + FS + tempInputJarFile.getName());
208+
tempOutputJar.getParentFile().mkdirs();
208209

209210
try
210211
{
211-
ConsoleDecompiler.main(generateMainMethod(tempInputJarFile.getAbsolutePath(), TEMP_DIRECTORY + "./temp/"));
212+
ConsoleDecompiler.main(generateMainMethod(tempInputJarFile.getAbsolutePath(), TEMP_DIRECTORY + "temp"));
212213
}
213214
catch (StackOverflowError | Exception ignored)
214215
{

0 commit comments

Comments
 (0)