Wrote /root/JavaX-Caches/tmp_1018623045/main.java - 1432 bytes (written=1432, should be 1432) 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:/root/.tinybrain/snippet-cache/data_1003441.jar:/root/.tinybrain/snippet-cache/data_1005652.jar -d /root/JavaX-Caches/tmp_428099281 /root/JavaX-Caches/tmp_1018623045/main.java 2>&1
[Compilation Error]

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

/root/JavaX-Caches/tmp_1018623045/main.java:1: error: class, interface, or enum expected !7 ^ /root/JavaX-Caches/tmp_1018623045/main.java:5: error: class, interface, or enum expected JNavigation nav = jnavigation(); ^ /root/JavaX-Caches/tmp_1018623045/main.java:6: error: class, interface, or enum expected frameIcon(#1101244, showMaximizedFrame(nav)); ^ /root/JavaX-Caches/tmp_1018623045/main.java:6: error: illegal character: '#' frameIcon(#1101244, showMaximizedFrame(nav)); ^ /root/JavaX-Caches/tmp_1018623045/main.java:7: error: class, interface, or enum expected File dataDir = javaxDataDir("Screen shots for text recognition"); ^ /root/JavaX-Caches/tmp_1018623045/main.java:9: error: class, interface, or enum expected for (final File f : sortFilesByDateDesc(listPNGFiles(dataDir))) { ^ /root/JavaX-Caches/tmp_1018623045/main.java:9: error: class, interface, or enum expected for (final File f : sortFilesByDateDesc(listPNGFiles(dataDir))) { ^ /root/JavaX-Caches/tmp_1018623045/main.java:10: error: class, interface, or enum expected final BufferedImage img = loadBufferedImage(f); ^ /root/JavaX-Caches/tmp_1018623045/main.java:11: error: class, interface, or enum expected print("Recognizing: " + f.getName() + " (" + bufferedImageSizeWithStar(img) + ")"); ^ /root/JavaX-Caches/tmp_1018623045/main.java:12: error: class, interface, or enum expected long time = sysNow(); ^ /root/JavaX-Caches/tmp_1018623045/main.java:13: error: class, interface, or enum expected final L<RecognizedText> lines = ocr_recognizeMultiLine_scored(img); ^ /root/JavaX-Caches/tmp_1018623045/main.java:14: error: class, interface, or enum expected print(" " + (sysNow()-time) + " ms"); ^ /root/JavaX-Caches/tmp_1018623045/main.java:15: error: class, interface, or enum expected nav.addPage(f.getName(), func -> JComponent { ^ /root/JavaX-Caches/tmp_1018623045/main.java:16: error: class, interface, or enum expected final new ImageSurface is; ^ /root/JavaX-Caches/tmp_1018623045/main.java:17: error: class, interface, or enum expected is.specialPurposed = true; ^ /root/JavaX-Caches/tmp_1018623045/main.java:18: error: class, interface, or enum expected showImageWithRecognizedTexts(img, is, lines); ^ /root/JavaX-Caches/tmp_1018623045/main.java:20: error: class, interface, or enum expected onImageSurfaceHighlightChange(is, voidfunc(Rect r) { ^ /root/JavaX-Caches/tmp_1018623045/main.java:22: error: class, interface, or enum expected setToolTip(is, rec == null ? null : str(rec.text)); ^ /root/JavaX-Caches/tmp_1018623045/main.java:23: error: class, interface, or enum expected }); ^ /root/JavaX-Caches/tmp_1018623045/main.java:25: error: class, interface, or enum expected imageSurfacePopupMenuWhenHighlighted_top(is, voidfunc(JPopupMenu menu, final Rect r) { ^ /root/JavaX-Caches/tmp_1018623045/main.java:25: error: class, interface, or enum expected imageSurfacePopupMenuWhenHighlighted_top(is, voidfunc(JPopupMenu menu, final Rect r) { ^ /root/JavaX-Caches/tmp_1018623045/main.java:26: error: class, interface, or enum expected final RecognizedText rec = findByField(lines, +r); ^ /root/JavaX-Caches/tmp_1018623045/main.java:27: error: class, interface, or enum expected addPopupMenuItem(menu, "OK: " + rec.text!, r { ^ /root/JavaX-Caches/tmp_1018623045/main.java:30: error: class, interface, or enum expected }); ^ /root/JavaX-Caches/tmp_1018623045/main.java:31: error: class, interface, or enum expected addSeparator(menu); ^ /root/JavaX-Caches/tmp_1018623045/main.java:32: error: class, interface, or enum expected }); ^ /root/JavaX-Caches/tmp_1018623045/main.java:34: error: class, interface, or enum expected ret jtabs( ^ /root/JavaX-Caches/tmp_1018623045/main.java:38: error: class, interface, or enum expected }); ^ /root/JavaX-Caches/tmp_1018623045/main.java:39: error: class, interface, or enum expected } ^ 29 errors