Wrote /root/JavaX-Caches/tmp_680037590/main.java - 2229 bytes (written=2229, should be 2229) javac=0, ecj=1, useJarBot=0 Checking ECJ at port 4898 at 127.0.0.1 /root/jdk-17/bin/javac -source 11 -target 11 -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_564025976 /root/JavaX-Caches/tmp_680037590/main.java 2>&1
[Compilation Error]

Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.

/root/JavaX-Caches/tmp_680037590/main.java:1: error: class, interface, or enum expected static File javaCompileToJar(S src, File destJar) { ^ /root/JavaX-Caches/tmp_680037590/main.java:3: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_680037590/main.java:9: error: class, interface, or enum expected print("Compiling " + l(src) + " chars"); ^ /root/JavaX-Caches/tmp_680037590/main.java:10: error: class, interface, or enum expected S md5 = md5(src); ^ /root/JavaX-Caches/tmp_680037590/main.java:11: error: class, interface, or enum expected File jar = destJar; ^ /root/JavaX-Caches/tmp_680037590/main.java:13: error: class, interface, or enum expected Class j = getJavaX(); ^ /root/JavaX-Caches/tmp_680037590/main.java:14: error: class, interface, or enum expected if (javaTarget != null) ^ /root/JavaX-Caches/tmp_680037590/main.java:17: error: class, interface, or enum expected File srcDir = cast call(j, "TempDirMaker_make"); ^ /root/JavaX-Caches/tmp_680037590/main.java:18: error: class, interface, or enum expected L<S> tok = javaTok(src); ^ /root/JavaX-Caches/tmp_680037590/main.java:19: error: class, interface, or enum expected S className = getNameOfPublicClass(tok); ^ /root/JavaX-Caches/tmp_680037590/main.java:20: error: class, interface, or enum expected if (className == null) className = getNameOfAnyClass(tok); ^ /root/JavaX-Caches/tmp_680037590/main.java:21: error: class, interface, or enum expected if (className == null) fail("No classes defined in source!?"); ^ /root/JavaX-Caches/tmp_680037590/main.java:22: error: class, interface, or enum expected S fileName = className + ".java"; ^ /root/JavaX-Caches/tmp_680037590/main.java:23: error: class, interface, or enum expected File mainJava = new File(srcDir, fileName); ^ /root/JavaX-Caches/tmp_680037590/main.java:25: error: class, interface, or enum expected saveTextFile(mainJava, src); ^ /root/JavaX-Caches/tmp_680037590/main.java:26: error: class, interface, or enum expected File classesDir = (File) call(j, "TempDirMaker_make"); ^ /root/JavaX-Caches/tmp_680037590/main.java:27: error: class, interface, or enum expected new L<File> libraries; ^ /root/JavaX-Caches/tmp_680037590/main.java:29: error: class, interface, or enum expected Matcher m = Pattern.compile("\\d+").matcher(dehlibs); ^ /root/JavaX-Caches/tmp_680037590/main.java:30: error: class, interface, or enum expected while (m.find()) { ^ /root/JavaX-Caches/tmp_680037590/main.java:33: error: class, interface, or enum expected assertTrue(isSnippetID(libID)); ^ /root/JavaX-Caches/tmp_680037590/main.java:34: error: class, interface, or enum expected libraries.add(loadLibrary(libID)); ^ /root/JavaX-Caches/tmp_680037590/main.java:35: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_680037590/main.java:38: error: class, interface, or enum expected try { ^ /root/JavaX-Caches/tmp_680037590/main.java:40: error: class, interface, or enum expected } catch (Throwable e) { ^ /root/JavaX-Caches/tmp_680037590/main.java:42: error: class, interface, or enum expected fail("Compile Error. " + compilerOutput + " " + e); ^ /root/JavaX-Caches/tmp_680037590/main.java:43: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_680037590/main.java:48: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_680037590/main.java:55: error: class, interface, or enum expected saveTextFile(new File(classesDir, "main.java"), src); ^ /root/JavaX-Caches/tmp_680037590/main.java:58: error: class, interface, or enum expected if (nempty(dehlibs)) ^ /root/JavaX-Caches/tmp_680037590/main.java:62: error: class, interface, or enum expected dir2zip_recurse_verbose = false; ^ /root/JavaX-Caches/tmp_680037590/main.java:63: error: class, interface, or enum expected int n = dir2zip_recurse(classesDir, jar); // cache on success only ^ /root/JavaX-Caches/tmp_680037590/main.java:66: error: class, interface, or enum expected return jar; ^ /root/JavaX-Caches/tmp_680037590/main.java:67: error: class, interface, or enum expected } ^ 33 errors