Wrote /root/JavaX-Caches/tmp_1298289111/main.java - 1422 bytes (written=1422, should be 1422)
javac=0, ecj=1, useJarBot=0
Checking ECJ at port 4898 at 127.0.0.1
/root/jdk-17/bin/javac -source 1.8 -target 1.8 -nowarn -encoding utf8 -Xdiags:verbose -cp /root/.javax/x30.jar:/root/dexcompiler/android.jar:/root/dexcompiler/support-v4-22.2.1.jar:/root/javafx/javafx.base.jar:/root/javafx/javafx.graphics.jar:/root/javafx/javafx.swing.jar -d /root/JavaX-Caches/tmp_1400128713 /root/JavaX-Caches/tmp_1298289111/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_1298289111/main.java:1: error: class, interface, or enum expected
!636
^
/root/JavaX-Caches/tmp_1298289111/main.java:9: error: class, interface, or enum expected
throw new RuntimeException("Method 'main' with 1 parameter not found in " + theClass.getName());
^
/root/JavaX-Caches/tmp_1298289111/main.java:10: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1298289111/main.java:14: error: class, interface, or enum expected
String prelude = "public class main { public static Object main(Object o) throws Exception {\n";
^
/root/JavaX-Caches/tmp_1298289111/main.java:15: error: class, interface, or enum expected
String postlude = "\n}}";
^
/root/JavaX-Caches/tmp_1298289111/main.java:16: error: class, interface, or enum expected
String src = prelude + mainSrc + postlude;
^
/root/JavaX-Caches/tmp_1298289111/main.java:17: error: class, interface, or enum expected
File srcDir = _x16.TempDirMaker_make();
^
/root/JavaX-Caches/tmp_1298289111/main.java:18: error: class, interface, or enum expected
File classesDir = _x16.TempDirMaker_make();
^
/root/JavaX-Caches/tmp_1298289111/main.java:19: error: class, interface, or enum expected
_x16.saveTextFile(new File(srcDir, "main.java").getPath(), src);
^
/root/JavaX-Caches/tmp_1298289111/main.java:20: error: class, interface, or enum expected
List libraries = new ArrayList();
^
/root/JavaX-Caches/tmp_1298289111/main.java:21: error: class, interface, or enum expected
File transpiledDir = _x16.topLevelTranslate(srcDir, libraries);
^
/root/JavaX-Caches/tmp_1298289111/main.java:22: error: class, interface, or enum expected
String javacOutput = _x16.compileJava(transpiledDir, libraries, classesDir);
^
/root/JavaX-Caches/tmp_1298289111/main.java:23: error: class, interface, or enum expected
System.out.println(javacOutput);
^
/root/JavaX-Caches/tmp_1298289111/main.java:24: error: class, interface, or enum expected
URL[] urls = {classesDir.toURI().toURL()};
^
/root/JavaX-Caches/tmp_1298289111/main.java:27: error: class, interface, or enum expected
URLClassLoader classLoader = new URLClassLoader(urls);
^
/root/JavaX-Caches/tmp_1298289111/main.java:30: error: class, interface, or enum expected
Class> mainClass = classLoader.loadClass("main");
^
/root/JavaX-Caches/tmp_1298289111/main.java:32: error: class, interface, or enum expected
Method m = findMainMethod(mainClass);
^
/root/JavaX-Caches/tmp_1298289111/main.java:34: error: class, interface, or enum expected
Object in = "helloinput";
^
/root/JavaX-Caches/tmp_1298289111/main.java:35: error: class, interface, or enum expected
Object out = m.invoke(null, in);
^
/root/JavaX-Caches/tmp_1298289111/main.java:36: error: class, interface, or enum expected
System.out.println(in + " => " + out);
^
/root/JavaX-Caches/tmp_1298289111/main.java:37: error: class, interface, or enum expected
}
^
21 errors