From 458983fc68b7325ad61793914f4e7a418f83a144 Mon Sep 17 00:00:00 2001 From: i22007 Date: Wed, 8 May 2024 16:12:04 +0200 Subject: [PATCH] Change on filepath --- src/main/java/bytecode/ClassCodeGen.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/bytecode/ClassCodeGen.java b/src/main/java/bytecode/ClassCodeGen.java index e9eb641..77316a6 100644 --- a/src/main/java/bytecode/ClassCodeGen.java +++ b/src/main/java/bytecode/ClassCodeGen.java @@ -35,15 +35,13 @@ public class ClassCodeGen { } private void printIntoClassFile(byte[] byteCode, String name) { - String filePath = "src/main/java/classFileOutput/" + name + ".class"; - String directoryPath = "src/main/java/classFileOutput"; File directory = new File(directoryPath); if (!directory.exists()) { directory.mkdirs(); } - + String filePath = directoryPath + "/" + name + ".class"; try { FileOutputStream fileOutputStream = new FileOutputStream(filePath); fileOutputStream.write(byteCode);