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

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

/root/JavaX-Caches/tmp_2098506974/main.java:1: error: class, interface, or enum expected sclass RGBImage implements MakesBufferedImage, IRGBImage { ^ /root/JavaX-Caches/tmp_2098506974/main.java:3: error: class, interface, or enum expected File file; ^ /root/JavaX-Caches/tmp_2098506974/main.java:4: error: class, interface, or enum expected int width, height; ^ /root/JavaX-Caches/tmp_2098506974/main.java:5: error: class, interface, or enum expected int[] pixels; ^ /root/JavaX-Caches/tmp_2098506974/main.java:7: error: class, interface, or enum expected *() {} ^ /root/JavaX-Caches/tmp_2098506974/main.java:11: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2098506974/main.java:15: error: class, interface, or enum expected bufferedImage = image; ^ /root/JavaX-Caches/tmp_2098506974/main.java:16: error: class, interface, or enum expected width = image.getWidth(); ^ /root/JavaX-Caches/tmp_2098506974/main.java:17: error: class, interface, or enum expected height = image.getHeight(); ^ /root/JavaX-Caches/tmp_2098506974/main.java:18: error: class, interface, or enum expected pixels = new int[width*height]; ^ /root/JavaX-Caches/tmp_2098506974/main.java:19: error: class, interface, or enum expected PixelGrabber pixelGrabber = new PixelGrabber(image, 0, 0, width, height, pixels, 0, width); ^ /root/JavaX-Caches/tmp_2098506974/main.java:20: error: class, interface, or enum expected try { ^ /root/JavaX-Caches/tmp_2098506974/main.java:23: error: class, interface, or enum expected cleanPixels(); // set upper byte to 0 ^ /root/JavaX-Caches/tmp_2098506974/main.java:24: error: class, interface, or enum expected } catch (InterruptedException e) { ^ /root/JavaX-Caches/tmp_2098506974/main.java:26: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2098506974/main.java:32: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2098506974/main.java:36: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2098506974/main.java:40: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2098506974/main.java:43: error: class, interface, or enum expected for (int i = 0; i < pixels.length; i++) ^ /root/JavaX-Caches/tmp_2098506974/main.java:43: error: class, interface, or enum expected for (int i = 0; i < pixels.length; i++) ^ /root/JavaX-Caches/tmp_2098506974/main.java:45: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2098506974/main.java:49: error: class, interface, or enum expected this.height = height; ^ /root/JavaX-Caches/tmp_2098506974/main.java:50: error: class, interface, or enum expected this.pixels = pixels; ^ /root/JavaX-Caches/tmp_2098506974/main.java:51: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2098506974/main.java:55: error: class, interface, or enum expected this.height = h; ^ /root/JavaX-Caches/tmp_2098506974/main.java:56: error: class, interface, or enum expected this.pixels = asInts(pixels); ^ /root/JavaX-Caches/tmp_2098506974/main.java:57: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2098506974/main.java:59: error: class, interface, or enum expected public static int[] asInts(RGB[] pixels) { ^ /root/JavaX-Caches/tmp_2098506974/main.java:61: error: class, interface, or enum expected for (int i = 0; i < pixels.length; i++) ^ /root/JavaX-Caches/tmp_2098506974/main.java:61: error: class, interface, or enum expected for (int i = 0; i < pixels.length; i++) ^ /root/JavaX-Caches/tmp_2098506974/main.java:61: error: class, interface, or enum expected for (int i = 0; i < pixels.length; i++) ^ /root/JavaX-Caches/tmp_2098506974/main.java:63: error: class, interface, or enum expected return ints; ^ /root/JavaX-Caches/tmp_2098506974/main.java:64: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2098506974/main.java:66: error: class, interface, or enum expected public RGBImage(int w, int h) { ^ /root/JavaX-Caches/tmp_2098506974/main.java:68: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2098506974/main.java:72: error: class, interface, or enum expected this.height = h; ^ /root/JavaX-Caches/tmp_2098506974/main.java:73: error: class, interface, or enum expected this.pixels = new int[w*h]; ^ /root/JavaX-Caches/tmp_2098506974/main.java:74: error: class, interface, or enum expected int col = rgb.asInt(); ^ /root/JavaX-Caches/tmp_2098506974/main.java:75: error: class, interface, or enum expected if (col != 0) ^ /root/JavaX-Caches/tmp_2098506974/main.java:76: error: class, interface, or enum expected for (int i = 0; i < pixels.length; i++) ^ /root/JavaX-Caches/tmp_2098506974/main.java:76: error: class, interface, or enum expected for (int i = 0; i < pixels.length; i++) ^ /root/JavaX-Caches/tmp_2098506974/main.java:78: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2098506974/main.java:82: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2098506974/main.java:86: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2098506974/main.java:90: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2098506974/main.java:94: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2098506974/main.java:98: error: class, interface, or enum expected System.arraycopy(pixels, 0, copy, 0, pixels.length); ^ /root/JavaX-Caches/tmp_2098506974/main.java:99: error: class, interface, or enum expected return copy; ^ /root/JavaX-Caches/tmp_2098506974/main.java:100: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2098506974/main.java:102: error: class, interface, or enum expected public int getIntPixel(int x, int y) { ^ /root/JavaX-Caches/tmp_2098506974/main.java:105: error: class, interface, or enum expected else ^ /root/JavaX-Caches/tmp_2098506974/main.java:107: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2098506974/main.java:109: error: class, interface, or enum expected public static RGB asRGB(int packed) { ^ /root/JavaX-Caches/tmp_2098506974/main.java:111: error: class, interface, or enum expected int g = (packed >> 8) & 0xFF; ^ /root/JavaX-Caches/tmp_2098506974/main.java:112: error: class, interface, or enum expected int b = packed & 0xFF; ^ /root/JavaX-Caches/tmp_2098506974/main.java:113: error: class, interface, or enum expected return new RGB(r / 255f, g / 255f, b / 255f); ^ /root/JavaX-Caches/tmp_2098506974/main.java:114: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2098506974/main.java:116: error: class, interface, or enum expected public RGB getRGB(int x, int y) { ^ /root/JavaX-Caches/tmp_2098506974/main.java:119: error: class, interface, or enum expected else ^ /root/JavaX-Caches/tmp_2098506974/main.java:121: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2098506974/main.java:126: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2098506974/main.java:128: error: class, interface, or enum expected RGB getPixel(Pt p) { ret getPixel(p.x, p.y); } ^ /root/JavaX-Caches/tmp_2098506974/main.java:130: error: class, interface, or enum expected public int getWidth() { return width; } ^ /root/JavaX-Caches/tmp_2098506974/main.java:130: error: class, interface, or enum expected public int getWidth() { return width; } ^ /root/JavaX-Caches/tmp_2098506974/main.java:131: error: class, interface, or enum expected public int getHeight() { return height; } ^ /root/JavaX-Caches/tmp_2098506974/main.java:131: error: class, interface, or enum expected public int getHeight() { return height; } ^ /root/JavaX-Caches/tmp_2098506974/main.java:132: error: class, interface, or enum expected public int w() { ret width; } ^ /root/JavaX-Caches/tmp_2098506974/main.java:132: error: class, interface, or enum expected public int w() { ret width; } ^ /root/JavaX-Caches/tmp_2098506974/main.java:133: error: class, interface, or enum expected public int h() { ret height; } ^ /root/JavaX-Caches/tmp_2098506974/main.java:133: error: class, interface, or enum expected public int h() { ret height; } ^ /root/JavaX-Caches/tmp_2098506974/main.java:137: error: class, interface, or enum expected public BufferedImage getBufferedImage() { ^ /root/JavaX-Caches/tmp_2098506974/main.java:141: error: class, interface, or enum expected for (int y = 0; y < height; y++) ^ /root/JavaX-Caches/tmp_2098506974/main.java:141: error: class, interface, or enum expected for (int y = 0; y < height; y++) ^ /root/JavaX-Caches/tmp_2098506974/main.java:141: error: class, interface, or enum expected for (int y = 0; y < height; y++) ^ /root/JavaX-Caches/tmp_2098506974/main.java:142: error: class, interface, or enum expected for (int x = 0; x < width; x++) ^ /root/JavaX-Caches/tmp_2098506974/main.java:142: error: class, interface, or enum expected for (int x = 0; x < width; x++) ^ /root/JavaX-Caches/tmp_2098506974/main.java:144: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2098506974/main.java:146: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2098506974/main.java:150: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2098506974/main.java:154: error: class, interface, or enum expected if (r.x == 0 && r.y == 0 && r.width == width && r.height == height) this; ^ /root/JavaX-Caches/tmp_2098506974/main.java:155: error: class, interface, or enum expected int[] newPixels; ^ /root/JavaX-Caches/tmp_2098506974/main.java:156: error: class, interface, or enum expected try { ^ /root/JavaX-Caches/tmp_2098506974/main.java:158: error: class, interface, or enum expected } catch (RuntimeException e) { ^ /root/JavaX-Caches/tmp_2098506974/main.java:160: error: class, interface, or enum expected throw e; ^ /root/JavaX-Caches/tmp_2098506974/main.java:161: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2098506974/main.java:162: error: class, interface, or enum expected for (int y = 0; y < r.height; y++) { ^ /root/JavaX-Caches/tmp_2098506974/main.java:162: error: class, interface, or enum expected for (int y = 0; y < r.height; y++) { ^ /root/JavaX-Caches/tmp_2098506974/main.java:164: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2098506974/main.java:166: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2098506974/main.java:170: error: class, interface, or enum expected if (r.isEmpty()) ^ /root/JavaX-Caches/tmp_2098506974/main.java:172: error: class, interface, or enum expected return r; ^ /root/JavaX-Caches/tmp_2098506974/main.java:173: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2098506974/main.java:175: error: class, interface, or enum expected public File getFile() { ^ /root/JavaX-Caches/tmp_2098506974/main.java:177: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2098506974/main.java:180: error: class, interface, or enum expected public static RGBImage load(String fileName) { ^ /root/JavaX-Caches/tmp_2098506974/main.java:182: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2098506974/main.java:185: error: class, interface, or enum expected public static RGBImage load(File file) { ^ /root/JavaX-Caches/tmp_2098506974/main.java:188: error: class, interface, or enum expected return new RGBImage(bufferedImage); ^ /root/JavaX-Caches/tmp_2098506974/main.java:189: error: class, interface, or enum expected } catch (IOException e) { ^ /root/JavaX-Caches/tmp_2098506974/main.java:191: error: class, interface, or enum expected } ^ 100 errors only showing the first 100 errors, of 151 total; use -Xmaxerrs if you would like to see more