Wrote /root/JavaX-Caches/tmp_2080678682/main.java - 2091 bytes (written=2091, should be 2091)
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_847030749 /root/JavaX-Caches/tmp_2080678682/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_2080678682/main.java:1: error: class, interface, or enum expected
sclass ScreenLens {
^
/root/JavaX-Caches/tmp_2080678682/main.java:3: error: class, interface, or enum expected
int w = 300, h = 300;
^
/root/JavaX-Caches/tmp_2080678682/main.java:4: error: class, interface, or enum expected
ImageSurface is;
^
/root/JavaX-Caches/tmp_2080678682/main.java:5: error: class, interface, or enum expected
volatile BufferedImage image, imagePP; // pp = postProcessed
^
/root/JavaX-Caches/tmp_2080678682/main.java:6: error: class, interface, or enum expected
bool keepAwayFromBorder = true, makeBot = false;
^
/root/JavaX-Caches/tmp_2080678682/main.java:7: error: class, interface, or enum expected
bool showFPS = true;
^
/root/JavaX-Caches/tmp_2080678682/main.java:8: error: class, interface, or enum expected
S botName = "Screen Lens.";
^
/root/JavaX-Caches/tmp_2080678682/main.java:9: error: class, interface, or enum expected
Android3 bot; // exporting our functionality as bot to other VMs
^
/root/JavaX-Caches/tmp_2080678682/main.java:10: error: class, interface, or enum expected
bool pack = true;
^
/root/JavaX-Caches/tmp_2080678682/main.java:11: error: class, interface, or enum expected
new PerSecondCounter fps;
^
/root/JavaX-Caches/tmp_2080678682/main.java:12: error: class, interface, or enum expected
javax.swing.Timer timer;
^
/root/JavaX-Caches/tmp_2080678682/main.java:14: error: class, interface, or enum expected
O onImageChange;
^
/root/JavaX-Caches/tmp_2080678682/main.java:15: error: class, interface, or enum expected
O postProcess; // func(BufferedImage) => BufferedImage
^
/root/JavaX-Caches/tmp_2080678682/main.java:17: error: class, interface, or enum expected
ScreenLens start() {
^
/root/JavaX-Caches/tmp_2080678682/main.java:20: error: class, interface, or enum expected
timer = installTimer(is, toMS(sleep), r {
^
/root/JavaX-Caches/tmp_2080678682/main.java:22: error: class, interface, or enum expected
Rect screen = screenRect();
^
/root/JavaX-Caches/tmp_2080678682/main.java:23: error: class, interface, or enum expected
if (keepAwayFromBorder) {
^
/root/JavaX-Caches/tmp_2080678682/main.java:25: error: class, interface, or enum expected
m = new Pt(max(m.x, w/2), max(m.y, h/2));
^
/root/JavaX-Caches/tmp_2080678682/main.java:26: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_2080678682/main.java:28: error: class, interface, or enum expected
image = shootScreen2(r);
^
/root/JavaX-Caches/tmp_2080678682/main.java:29: error: class, interface, or enum expected
imagePP = callPostProcessor(postProcess, image);
^
/root/JavaX-Caches/tmp_2080678682/main.java:30: error: class, interface, or enum expected
is.setImage(imagePP);
^
/root/JavaX-Caches/tmp_2080678682/main.java:31: error: class, interface, or enum expected
if (pack) {
^
/root/JavaX-Caches/tmp_2080678682/main.java:33: error: class, interface, or enum expected
moveToTopRightCorner(getFrame(lens.is));
^
/root/JavaX-Caches/tmp_2080678682/main.java:34: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_2080678682/main.java:36: error: class, interface, or enum expected
fps.inc();
^
/root/JavaX-Caches/tmp_2080678682/main.java:37: error: class, interface, or enum expected
if (showFPS)
^
/root/JavaX-Caches/tmp_2080678682/main.java:39: error: class, interface, or enum expected
pcallF(onImageChange);
^
/root/JavaX-Caches/tmp_2080678682/main.java:40: error: class, interface, or enum expected
});
^
/root/JavaX-Caches/tmp_2080678682/main.java:41: error: class, interface, or enum expected
});
^
/root/JavaX-Caches/tmp_2080678682/main.java:42: error: class, interface, or enum expected
addSizeChooser();
^
/root/JavaX-Caches/tmp_2080678682/main.java:43: error: class, interface, or enum expected
if (makeBot) bot = makeBot(botName, this);
^
/root/JavaX-Caches/tmp_2080678682/main.java:44: error: class, interface, or enum expected
this;
^
/root/JavaX-Caches/tmp_2080678682/main.java:45: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_2080678682/main.java:48: error: class, interface, or enum expected
final JTextField tfSize = jTextField(w);
^
/root/JavaX-Caches/tmp_2080678682/main.java:49: error: class, interface, or enum expected
addToWindow(is, jRightAlignedLine(jlabel("Size:"), jMinWidth(50, tfSize), jlabel("pixels")));
^
/root/JavaX-Caches/tmp_2080678682/main.java:50: error: class, interface, or enum expected
onUpdate(tfSize, r {
^
/root/JavaX-Caches/tmp_2080678682/main.java:52: error: class, interface, or enum expected
pack = true;
^
/root/JavaX-Caches/tmp_2080678682/main.java:53: error: class, interface, or enum expected
});
^
/root/JavaX-Caches/tmp_2080678682/main.java:54: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_2080678682/main.java:58: error: class, interface, or enum expected
if "get image"
^
/root/JavaX-Caches/tmp_2080678682/main.java:60: error: class, interface, or enum expected
if "get post processed image"
^
/root/JavaX-Caches/tmp_2080678682/main.java:62: error: class, interface, or enum expected
if "running" ret yn(timer.isRunning());
^
/root/JavaX-Caches/tmp_2080678682/main.java:63: error: class, interface, or enum expected
null;
^
/root/JavaX-Caches/tmp_2080678682/main.java:64: error: class, interface, or enum expected
}
^
45 errors