Wrote /root/JavaX-Caches/tmp_804600286/main.java - 1130 bytes (written=1130, should be 1130)
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_58071626 /root/JavaX-Caches/tmp_804600286/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_804600286/main.java:1: error: class, interface, or enum expected
!636 // auto-import
^
/root/JavaX-Caches/tmp_804600286/main.java:7: error: illegal start of expression
static String prelude = [[
^
/root/JavaX-Caches/tmp_804600286/main.java:14: error: illegal start of expression
]];
^
/root/JavaX-Caches/tmp_804600286/main.java:16: error: illegal start of expression
static String postlude = [[
^
/root/JavaX-Caches/tmp_804600286/main.java:16: error: illegal start of expression
static String postlude = [[
^
/root/JavaX-Caches/tmp_804600286/main.java:19: error: class, interface, or enum expected
]];
^
/root/JavaX-Caches/tmp_804600286/main.java:21: error: class, interface, or enum expected
public static void main(String[] args) throws IOException {
^
/root/JavaX-Caches/tmp_804600286/main.java:23: error: class, interface, or enum expected
if (code == null)
^
/root/JavaX-Caches/tmp_804600286/main.java:25: error: class, interface, or enum expected
code = prelude + code + postlude;
^
/root/JavaX-Caches/tmp_804600286/main.java:26: error: class, interface, or enum expected
code = moveImportsUp(code);
^
/root/JavaX-Caches/tmp_804600286/main.java:27: error: class, interface, or enum expected
saveTextFile("output/main.java", code);
^
/root/JavaX-Caches/tmp_804600286/main.java:28: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_804600286/main.java:32: error: class, interface, or enum expected
new List x;
^
/root/JavaX-Caches/tmp_804600286/main.java:33: error: class, interface, or enum expected
Pattern p = Pattern.compile("^\\s*import\\s");
^
/root/JavaX-Caches/tmp_804600286/main.java:34: error: class, interface, or enum expected
for (ListIterator i = l.listIterator(); i.hasNext(); ) {
^
/root/JavaX-Caches/tmp_804600286/main.java:34: error: class, interface, or enum expected
for (ListIterator i = l.listIterator(); i.hasNext(); ) {
^
/root/JavaX-Caches/tmp_804600286/main.java:34: error: class, interface, or enum expected
for (ListIterator i = l.listIterator(); i.hasNext(); ) {
^
/root/JavaX-Caches/tmp_804600286/main.java:36: error: class, interface, or enum expected
if (p.matcher(line).find()) {
^
/root/JavaX-Caches/tmp_804600286/main.java:38: error: class, interface, or enum expected
i.remove();
^
/root/JavaX-Caches/tmp_804600286/main.java:39: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_804600286/main.java:42: error: class, interface, or enum expected
return fromLines(x);
^
/root/JavaX-Caches/tmp_804600286/main.java:43: error: class, interface, or enum expected
}
^
22 errors