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

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

/root/JavaX-Caches/tmp_2137621591/main.java:1: error: class, interface, or enum expected sclass CirclesRelater extends MouseAdapter { ^ /root/JavaX-Caches/tmp_2137621591/main.java:3: error: class, interface, or enum expected CirclesAndLines cal; ^ /root/JavaX-Caches/tmp_2137621591/main.java:4: error: class, interface, or enum expected Circle circle; ^ /root/JavaX-Caches/tmp_2137621591/main.java:5: error: class, interface, or enum expected Pt p; ^ /root/JavaX-Caches/tmp_2137621591/main.java:6: error: class, interface, or enum expected bool popupTrigger; ^ /root/JavaX-Caches/tmp_2137621591/main.java:7: error: class, interface, or enum expected componentPopupMenu_Adapter popup; ^ /root/JavaX-Caches/tmp_2137621591/main.java:8: error: class, interface, or enum expected int minDist = 20; ^ /root/JavaX-Caches/tmp_2137621591/main.java:10: error: class, interface, or enum expected *(Canvas *canvas, CirclesAndLines *cal) { ^ /root/JavaX-Caches/tmp_2137621591/main.java:12: error: class, interface, or enum expected canvas.tools.add(this); ^ /root/JavaX-Caches/tmp_2137621591/main.java:13: error: class, interface, or enum expected canvas.addMouseListener(this); ^ /root/JavaX-Caches/tmp_2137621591/main.java:14: error: class, interface, or enum expected canvas.addMouseMotionListener(this); ^ /root/JavaX-Caches/tmp_2137621591/main.java:16: error: class, interface, or enum expected popup = findMouseListener(canvas, componentPopupMenu_Adapter); ^ /root/JavaX-Caches/tmp_2137621591/main.java:17: error: class, interface, or enum expected canvas.removeMouseListener(popup); ^ /root/JavaX-Caches/tmp_2137621591/main.java:18: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2137621591/main.java:20: error: class, interface, or enum expected public void mousePressed(MouseEvent e) { ^ /root/JavaX-Caches/tmp_2137621591/main.java:22: error: class, interface, or enum expected if (e.getButton() != MouseEvent.BUTTON1) ^ /root/JavaX-Caches/tmp_2137621591/main.java:24: error: class, interface, or enum expected else circle = null; ^ /root/JavaX-Caches/tmp_2137621591/main.java:25: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2137621591/main.java:27: error: class, interface, or enum expected public void mouseDragged(MouseEvent e) { ^ /root/JavaX-Caches/tmp_2137621591/main.java:30: error: class, interface, or enum expected public void mouseReleased(MouseEvent e) { ^ /root/JavaX-Caches/tmp_2137621591/main.java:32: error: class, interface, or enum expected int d = (int) pointDistance(p, pt); ^ /root/JavaX-Caches/tmp_2137621591/main.java:33: error: class, interface, or enum expected print("Dist: " + d); ^ /root/JavaX-Caches/tmp_2137621591/main.java:34: error: class, interface, or enum expected if (circle == null || d < minDist) { ^ /root/JavaX-Caches/tmp_2137621591/main.java:36: error: class, interface, or enum expected ret; ^ /root/JavaX-Caches/tmp_2137621591/main.java:37: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2137621591/main.java:39: error: class, interface, or enum expected final Circle circle2 = findCircle(pt); ^ /root/JavaX-Caches/tmp_2137621591/main.java:40: error: class, interface, or enum expected final Circle circle1 = circle; ^ /root/JavaX-Caches/tmp_2137621591/main.java:41: error: class, interface, or enum expected if (circle1 != circle2 && circle2 != null) { ^ /root/JavaX-Caches/tmp_2137621591/main.java:42: error: class, interface, or enum expected final JTextField tf = jTextField(); ^ /root/JavaX-Caches/tmp_2137621591/main.java:43: error: class, interface, or enum expected showFormTitled("Link nodes", ^ /root/JavaX-Caches/tmp_2137621591/main.java:48: error: class, interface, or enum expected canvas.update(); ^ /root/JavaX-Caches/tmp_2137621591/main.java:49: error: class, interface, or enum expected }); ^ /root/JavaX-Caches/tmp_2137621591/main.java:50: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2137621591/main.java:53: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2137621591/main.java:55: error: class, interface, or enum expected Circle findCircle(Pt p) { ret cal.findCircle(canvas, p); } ^ 35 errors