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

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

/root/JavaX-Caches/tmp_2005160854/main.java:1: error: class, interface, or enum expected sclass TailFile { ^ /root/JavaX-Caches/tmp_2005160854/main.java:3: error: class, interface, or enum expected int interval; ^ /root/JavaX-Caches/tmp_2005160854/main.java:4: error: class, interface, or enum expected long l; ^ /root/JavaX-Caches/tmp_2005160854/main.java:5: error: class, interface, or enum expected new Flag stopped; ^ /root/JavaX-Caches/tmp_2005160854/main.java:6: error: class, interface, or enum expected java.util.Timer timer; ^ /root/JavaX-Caches/tmp_2005160854/main.java:7: error: class, interface, or enum expected ReliableSingleThread thread; ^ /root/JavaX-Caches/tmp_2005160854/main.java:8: error: class, interface, or enum expected volatile bool hasIdled, debug; ^ /root/JavaX-Caches/tmp_2005160854/main.java:10: error: class, interface, or enum expected *() {} ^ /root/JavaX-Caches/tmp_2005160854/main.java:11: error: class, interface, or enum expected *(final File *file, int *interval, fO onData) { ^ /root/JavaX-Caches/tmp_2005160854/main.java:14: error: class, interface, or enum expected if (l2 < l) l = 0; // file shrunk (log rotated!) - start over from beginning of file ^ /root/JavaX-Caches/tmp_2005160854/main.java:15: error: class, interface, or enum expected if (l2 == l) hasIdled = true; ^ /root/JavaX-Caches/tmp_2005160854/main.java:16: error: class, interface, or enum expected else pcall { ^ /root/JavaX-Caches/tmp_2005160854/main.java:18: error: class, interface, or enum expected S text = null; ^ /root/JavaX-Caches/tmp_2005160854/main.java:19: error: class, interface, or enum expected for (S s : loadTextFilePart_iterator(file, l, l2)) ^ /root/JavaX-Caches/tmp_2005160854/main.java:21: error: class, interface, or enum expected l = l2; ^ /root/JavaX-Caches/tmp_2005160854/main.java:22: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2005160854/main.java:24: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2005160854/main.java:30: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2005160854/main.java:34: error: class, interface, or enum expected timer = null; ^ /root/JavaX-Caches/tmp_2005160854/main.java:35: error: class, interface, or enum expected if (stopped.raise()) ^ /root/JavaX-Caches/tmp_2005160854/main.java:37: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2005160854/main.java:41: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2005160854/main.java:45: error: class, interface, or enum expected debug = true; ^ /root/JavaX-Caches/tmp_2005160854/main.java:46: error: class, interface, or enum expected print("Watching file: " + f2s(file)); ^ /root/JavaX-Caches/tmp_2005160854/main.java:47: error: class, interface, or enum expected } ^ 25 errors