Wrote /root/JavaX-Caches/tmp_1895326835/main.java - 923 bytes (written=923, should be 923) 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_825273343 /root/JavaX-Caches/tmp_1895326835/main.java 2>&1
[Compilation Error]

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

/root/JavaX-Caches/tmp_1895326835/main.java:1: error: class, interface, or enum expected !636 ^ /root/JavaX-Caches/tmp_1895326835/main.java:3: error: <identifier> expected !auto-import ^ /root/JavaX-Caches/tmp_1895326835/main.java:5: error: '{' expected !class _x14 ^ /root/JavaX-Caches/tmp_1895326835/main.java:8: error: class, interface, or enum expected import java.security.NoSuchAlgorithmException; ^ /root/JavaX-Caches/tmp_1895326835/main.java:9: error: class, interface, or enum expected import java.lang.reflect.*; ^ /root/JavaX-Caches/tmp_1895326835/main.java:11: error: class, interface, or enum expected main { ^ /root/JavaX-Caches/tmp_1895326835/main.java:14: error: class, interface, or enum expected if (args.length != 0) ^ /root/JavaX-Caches/tmp_1895326835/main.java:16: error: class, interface, or enum expected else ^ /root/JavaX-Caches/tmp_1895326835/main.java:18: error: class, interface, or enum expected if (text == null) ^ /root/JavaX-Caches/tmp_1895326835/main.java:21: error: class, interface, or enum expected File srcDir = _x14.TempDirMaker_make(); ^ /root/JavaX-Caches/tmp_1895326835/main.java:22: error: class, interface, or enum expected saveTextFile(new File(srcDir, "main.java").getPath(), text); ^ /root/JavaX-Caches/tmp_1895326835/main.java:23: error: class, interface, or enum expected File classesDir = _x14.TempDirMaker_make(); ^ /root/JavaX-Caches/tmp_1895326835/main.java:24: error: class, interface, or enum expected List<File> libraries = new ArrayList<File>(); ^ /root/JavaX-Caches/tmp_1895326835/main.java:26: error: class, interface, or enum expected String javacOutput = _x14.compileJava(srcDir, libraries, classesDir); ^ /root/JavaX-Caches/tmp_1895326835/main.java:27: error: class, interface, or enum expected boolean isCompilable = _x14.didCompile(classesDir); ^ /root/JavaX-Caches/tmp_1895326835/main.java:28: error: class, interface, or enum expected System.out.println("Compilable: " + isCompilable); ^ /root/JavaX-Caches/tmp_1895326835/main.java:29: error: class, interface, or enum expected saveTextFile(isCompilable ? "output/is-compilable" : "output/is-not-compilable", "x"); ^ /root/JavaX-Caches/tmp_1895326835/main.java:30: error: class, interface, or enum expected } ^ 18 errors