Wrote /root/JavaX-Caches/tmp_506998801/main.java - 1534 bytes (written=1534, should be 1534)
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_990859067 /root/JavaX-Caches/tmp_506998801/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_506998801/main.java:1: error: class, interface, or enum expected
static File javaCompile(S src) {
^
/root/JavaX-Caches/tmp_506998801/main.java:3: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_506998801/main.java:11: error: class, interface, or enum expected
Class j = getJavaX();
^
/root/JavaX-Caches/tmp_506998801/main.java:12: error: class, interface, or enum expected
if (javaTarget != null)
^
/root/JavaX-Caches/tmp_506998801/main.java:15: error: class, interface, or enum expected
File srcDir = cast call(j, "TempDirMaker_make");
^
/root/JavaX-Caches/tmp_506998801/main.java:16: error: class, interface, or enum expected
S className = getNameOfPublicClass(javaTok(src));
^
/root/JavaX-Caches/tmp_506998801/main.java:17: error: class, interface, or enum expected
S fileName = className + ".java";
^
/root/JavaX-Caches/tmp_506998801/main.java:18: error: class, interface, or enum expected
File mainJava = new File(srcDir, fileName);
^
/root/JavaX-Caches/tmp_506998801/main.java:20: error: class, interface, or enum expected
saveTextFile(mainJava, src);
^
/root/JavaX-Caches/tmp_506998801/main.java:21: error: class, interface, or enum expected
File classesDir = (File) call(j, "TempDirMaker_make");
^
/root/JavaX-Caches/tmp_506998801/main.java:22: error: class, interface, or enum expected
new L libraries;
^
/root/JavaX-Caches/tmp_506998801/main.java:24: error: class, interface, or enum expected
Matcher m = Pattern.compile("\\d+").matcher(dehlibs);
^
/root/JavaX-Caches/tmp_506998801/main.java:25: error: class, interface, or enum expected
while (m.find()) {
^
/root/JavaX-Caches/tmp_506998801/main.java:28: error: class, interface, or enum expected
assertTrue(isSnippetID(libID));
^
/root/JavaX-Caches/tmp_506998801/main.java:29: error: class, interface, or enum expected
libraries.add(loadLibrary(libID));
^
/root/JavaX-Caches/tmp_506998801/main.java:30: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_506998801/main.java:35: error: class, interface, or enum expected
if (nempty(compilerOutput)) print("Compiler said: " + quote(compilerOutput));
^
/root/JavaX-Caches/tmp_506998801/main.java:38: error: class, interface, or enum expected
if (!new File(classesDir, className + ".class").exists())
^
/root/JavaX-Caches/tmp_506998801/main.java:40: error: class, interface, or enum expected
} catch (Exception e) {
^
/root/JavaX-Caches/tmp_506998801/main.java:43: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_506998801/main.java:46: error: class, interface, or enum expected
}
^
21 errors