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

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

/root/JavaX-Caches/tmp_538433712/main.java:1: error: class, interface, or enum expected static int forwardOneClick_windowSize = 11; // odd should look nice. Set to 1 for an invisible window ^ /root/JavaX-Caches/tmp_538433712/main.java:2: error: class, interface, or enum expected static int forwardOneClick_clickDelay = 0; // Delay in ms between closing window and forwarding click. 0 seems to work fine. ^ /root/JavaX-Caches/tmp_538433712/main.java:3: error: class, interface, or enum expected static int forwardOneClick_trackingSpeed = 10; // How often to move the window (ms) ^ /root/JavaX-Caches/tmp_538433712/main.java:7: error: class, interface, or enum expected static void forwardOneClick(final O onClick) { ^ /root/JavaX-Caches/tmp_538433712/main.java:7: error: class, interface, or enum expected static void forwardOneClick(final O onClick) { ^ /root/JavaX-Caches/tmp_538433712/main.java:9: error: class, interface, or enum expected final new JWindow window; ^ /root/JavaX-Caches/tmp_538433712/main.java:10: error: class, interface, or enum expected final int windowSize = forwardOneClick_windowSize; ^ /root/JavaX-Caches/tmp_538433712/main.java:11: error: class, interface, or enum expected window.setSize(windowSize, windowSize); ^ /root/JavaX-Caches/tmp_538433712/main.java:12: error: class, interface, or enum expected window.setVisible(true); ^ /root/JavaX-Caches/tmp_538433712/main.java:13: error: class, interface, or enum expected window.setAlwaysOnTop(true); ^ /root/JavaX-Caches/tmp_538433712/main.java:14: error: class, interface, or enum expected JPanel panel = singleColorPanel(Color.red); ^ /root/JavaX-Caches/tmp_538433712/main.java:15: error: class, interface, or enum expected window.setContentPane(panel); ^ /root/JavaX-Caches/tmp_538433712/main.java:16: error: class, interface, or enum expected revalidate(window); ^ /root/JavaX-Caches/tmp_538433712/main.java:17: error: class, interface, or enum expected final new Robot robot; ^ /root/JavaX-Caches/tmp_538433712/main.java:18: error: class, interface, or enum expected panel.addMouseListener(new MouseAdapter { ^ /root/JavaX-Caches/tmp_538433712/main.java:19: error: class, interface, or enum expected public void mouseReleased(final MouseEvent e) { ^ /root/JavaX-Caches/tmp_538433712/main.java:19: error: class, interface, or enum expected public void mouseReleased(final MouseEvent e) { ^ /root/JavaX-Caches/tmp_538433712/main.java:21: error: class, interface, or enum expected final int b = e.getButton(); ^ /root/JavaX-Caches/tmp_538433712/main.java:22: error: class, interface, or enum expected final int mod = ^ /root/JavaX-Caches/tmp_538433712/main.java:26: error: class, interface, or enum expected final Point point = getMouseLocation(); ^ /root/JavaX-Caches/tmp_538433712/main.java:27: error: class, interface, or enum expected swingLater(forwardOneClick_clickDelay, r { ^ /root/JavaX-Caches/tmp_538433712/main.java:29: error: class, interface, or enum expected robot.mousePress(mod); ^ /root/JavaX-Caches/tmp_538433712/main.java:30: error: class, interface, or enum expected robot.mouseRelease(mod); ^ /root/JavaX-Caches/tmp_538433712/main.java:31: error: class, interface, or enum expected }); ^ /root/JavaX-Caches/tmp_538433712/main.java:32: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_538433712/main.java:35: error: class, interface, or enum expected swingEvery(window, forwardOneClick_trackingSpeed, r { ^ /root/JavaX-Caches/tmp_538433712/main.java:37: error: class, interface, or enum expected window.setLocation(p.x-windowSize/2, p.y-windowSize/2); ^ /root/JavaX-Caches/tmp_538433712/main.java:38: error: class, interface, or enum expected }); ^ /root/JavaX-Caches/tmp_538433712/main.java:39: error: class, interface, or enum expected } ^ 29 errors