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

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

/root/JavaX-Caches/tmp_259912401/main.java:1: error: class, interface, or enum expected sclass G22BurnIn { ^ /root/JavaX-Caches/tmp_259912401/main.java:3: error: class, interface, or enum expected settable double tolerance = 0.1; ^ /root/JavaX-Caches/tmp_259912401/main.java:4: error: class, interface, or enum expected settable double colorMorph = 0.1; // speed to update color within tolerance ^ /root/JavaX-Caches/tmp_259912401/main.java:5: error: class, interface, or enum expected settable Color backgroundColor = Color.black; ^ /root/JavaX-Caches/tmp_259912401/main.java:7: error: class, interface, or enum expected int toleranceSquaredInt; ^ /root/JavaX-Caches/tmp_259912401/main.java:8: error: class, interface, or enum expected int w, h; ^ /root/JavaX-Caches/tmp_259912401/main.java:9: error: class, interface, or enum expected int[] mask; ^ /root/JavaX-Caches/tmp_259912401/main.java:12: error: class, interface, or enum expected double motionFactor = Double.NaN; ^ /root/JavaX-Caches/tmp_259912401/main.java:14: error: class, interface, or enum expected void processFrame(BufferedImage frame) { ^ /root/JavaX-Caches/tmp_259912401/main.java:17: error: class, interface, or enum expected int w = frame.getWidth(), h = frame.getHeight(); ^ /root/JavaX-Caches/tmp_259912401/main.java:18: error: class, interface, or enum expected if (mask == null || this.w != w || this.h != h) { ^ /root/JavaX-Caches/tmp_259912401/main.java:20: error: class, interface, or enum expected this.h = h; ^ /root/JavaX-Caches/tmp_259912401/main.java:21: error: class, interface, or enum expected this.mask = new int[w*h]; ^ /root/JavaX-Caches/tmp_259912401/main.java:22: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_259912401/main.java:26: error: class, interface, or enum expected int n = w*h, iMask = 0, iFrame = gp.offset; ^ /root/JavaX-Caches/tmp_259912401/main.java:27: error: class, interface, or enum expected int[] pixels = gp.data; ^ /root/JavaX-Caches/tmp_259912401/main.java:28: error: class, interface, or enum expected int[] mask = this.mask; ^ /root/JavaX-Caches/tmp_259912401/main.java:30: error: class, interface, or enum expected for y to h: { ^ /root/JavaX-Caches/tmp_259912401/main.java:33: error: class, interface, or enum expected int fcol = pixels[iFrame++] & 0xFFFFFF; ^ /root/JavaX-Caches/tmp_259912401/main.java:34: error: class, interface, or enum expected if (mpix == 0) ^ /root/JavaX-Caches/tmp_259912401/main.java:36: error: class, interface, or enum expected else { ^ /root/JavaX-Caches/tmp_259912401/main.java:38: error: class, interface, or enum expected int diff = rgbDistanceSquaredInt(mcol, fcol); ^ /root/JavaX-Caches/tmp_259912401/main.java:39: error: class, interface, or enum expected if (diff <= toleranceSquaredInt) ^ /root/JavaX-Caches/tmp_259912401/main.java:41: error: class, interface, or enum expected else ^ /root/JavaX-Caches/tmp_259912401/main.java:43: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_259912401/main.java:45: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_259912401/main.java:48: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_259912401/main.java:51: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_259912401/main.java:58: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_259912401/main.java:62: error: class, interface, or enum expected int newColor = blendRGBInts(mpix, fcol, colorMorph); ^ /root/JavaX-Caches/tmp_259912401/main.java:63: error: class, interface, or enum expected ret withAlpha(newAlpha, newColor); ^ /root/JavaX-Caches/tmp_259912401/main.java:64: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_259912401/main.java:68: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_259912401/main.java:72: error: class, interface, or enum expected var img = bufferedImage(w, h, mask); ^ /root/JavaX-Caches/tmp_259912401/main.java:73: error: class, interface, or enum expected ret renderImageOnBackground(backgroundColor, img); ^ /root/JavaX-Caches/tmp_259912401/main.java:74: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_259912401/main.java:78: error: class, interface, or enum expected int[] mask2 = pixelsWithInvertedAlpha(mask); ^ /root/JavaX-Caches/tmp_259912401/main.java:79: error: class, interface, or enum expected var img = bufferedImage(w, h, mask2); ^ /root/JavaX-Caches/tmp_259912401/main.java:80: error: class, interface, or enum expected ret renderImageOnBackground(backgroundColor, img); ^ /root/JavaX-Caches/tmp_259912401/main.java:81: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_259912401/main.java:85: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_259912401/main.java:90: error: class, interface, or enum expected ret motionFactor; ^ /root/JavaX-Caches/tmp_259912401/main.java:91: error: class, interface, or enum expected } ^ 43 errors