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

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

/root/JavaX-Caches/tmp_1297101695/main.java:1: error: class, interface, or enum expected sclass ScaledDiagram { ^ /root/JavaX-Caches/tmp_1297101695/main.java:3: error: class, interface, or enum expected settable int h = 400; ^ /root/JavaX-Caches/tmp_1297101695/main.java:4: error: class, interface, or enum expected settable int horizontalMargin = 10; ^ /root/JavaX-Caches/tmp_1297101695/main.java:5: error: class, interface, or enum expected settable int verticalMargin = 10; ^ /root/JavaX-Caches/tmp_1297101695/main.java:7: error: class, interface, or enum expected settable DoubleRange horizontalRange; ^ /root/JavaX-Caches/tmp_1297101695/main.java:8: error: class, interface, or enum expected settable DoubleRange verticalRange; ^ /root/JavaX-Caches/tmp_1297101695/main.java:11: error: class, interface, or enum expected DoubleRange xRange() { ret doubleRange(horizontalMargin, w-horizontalMargin); } ^ /root/JavaX-Caches/tmp_1297101695/main.java:11: error: class, interface, or enum expected DoubleRange xRange() { ret doubleRange(horizontalMargin, w-horizontalMargin); } ^ /root/JavaX-Caches/tmp_1297101695/main.java:12: error: class, interface, or enum expected DoubleRange yRange() { ret doubleRange(h-verticalMargin, verticalMargin); } ^ /root/JavaX-Caches/tmp_1297101695/main.java:14: error: class, interface, or enum expected double xToScreen(double x) { ret transformBetweenDoubleRanges(x, horizontalRange(), xRange()); } ^ /root/JavaX-Caches/tmp_1297101695/main.java:15: error: class, interface, or enum expected double yToScreen(double y) { ret transformBetweenDoubleRanges(y, verticalRange(), yRange()); } ^ /root/JavaX-Caches/tmp_1297101695/main.java:17: error: class, interface, or enum expected int xToScreen_int(double x) { ret iround(xToScreen(x)); } ^ /root/JavaX-Caches/tmp_1297101695/main.java:18: error: class, interface, or enum expected int yToScreen_int(double y) { ret iround(yToScreen(y)); } ^ /root/JavaX-Caches/tmp_1297101695/main.java:20: error: class, interface, or enum expected double xFromScreen(double x) { ret transformBetweenDoubleRanges(x, xRange(), horizontalRange()); } ^ /root/JavaX-Caches/tmp_1297101695/main.java:21: error: class, interface, or enum expected double yFromScreen(double y) { ret transformBetweenDoubleRanges(y, yRange(), verticalRange()); } ^ /root/JavaX-Caches/tmp_1297101695/main.java:23: error: class, interface, or enum expected public int getWidth() { ret w; } ^ /root/JavaX-Caches/tmp_1297101695/main.java:23: error: class, interface, or enum expected public int getWidth() { ret w; } ^ /root/JavaX-Caches/tmp_1297101695/main.java:24: error: class, interface, or enum expected public int getHeight() { ret h; } ^ /root/JavaX-Caches/tmp_1297101695/main.java:24: error: class, interface, or enum expected public int getHeight() { ret h; } ^ /root/JavaX-Caches/tmp_1297101695/main.java:26: error: class, interface, or enum expected bool hasScale() { ret horizontalRange != null && verticalRange != null; } ^ 20 errors