Skip to content

Commit 0e208cb

Browse files
authored
fix class name (#36)
1 parent 1ed8d9a commit 0e208cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commands/run.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ fun langVersionToUse(): String {
3434
} catch (e: Throwable) {
3535
throw JsonSyntaxException("deps.json file doesn't contain valid JSON!")
3636
}
37-
37+
3838
if (!File("$LANG_DIR_PATH/$langVersion.jar").exists())
3939
throw LangVersionNotFound("I can't find installed the lang version you specified")
4040

@@ -44,7 +44,7 @@ fun langVersionToUse(): String {
4444
fun executeClassFile() {
4545
val bytecode = File("$BINARY_DIR_NAME/$CLASSES_DIR_NAME/Main.class").readBytes()
4646

47-
IcaroClassLoader().defineClass("IcaroMain", bytecode).getMethod("main", Array<String>::class.java)
47+
IcaroClassLoader().defineClass("Main", bytecode).getMethod("main", Array<String>::class.java)
4848
.invoke(null, arrayOf<String>())
4949
}
5050

0 commit comments

Comments
 (0)