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

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

/root/JavaX-Caches/tmp_1011959602/main.java:1: error: modifier static not allowed here abstract static class Surface extends JPanel { ^ /root/JavaX-Caches/tmp_1011959602/main.java:1: error: cannot find symbol abstract static class Surface extends JPanel { ^ symbol: class JPanel /root/JavaX-Caches/tmp_1011959602/main.java:2: error: cannot find symbol public BufferedImage bimg; ^ symbol: class BufferedImage location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:6: error: cannot find symbol private Toolkit toolkit; ^ symbol: class Toolkit location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:29: error: cannot find symbol public BufferedImage createBufferedImage(Graphics2D g2, int w, int h, int imgType) { ^ symbol: class Graphics2D location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:29: error: cannot find symbol public BufferedImage createBufferedImage(Graphics2D g2, int w, int h, int imgType) { ^ symbol: class BufferedImage location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:60: error: cannot find symbol private BufferedImage createBinaryImage(int w, int h, int pixelBits) { ^ symbol: class BufferedImage location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:89: error: cannot find symbol private BufferedImage createSGISurface(int w, int h, int pixelBits) { ^ symbol: class BufferedImage location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:124: error: cannot find symbol public Graphics2D createGraphics2D(int width, int height, BufferedImage bi, Graphics g) { ^ symbol: class BufferedImage location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:124: error: cannot find symbol public Graphics2D createGraphics2D(int width, int height, BufferedImage bi, Graphics g) { ^ symbol: class Graphics location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:124: error: cannot find symbol public Graphics2D createGraphics2D(int width, int height, BufferedImage bi, Graphics g) { ^ symbol: class Graphics2D location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:144: error: cannot find symbol public abstract void render(int w, int h, Graphics2D g); ^ symbol: class Graphics2D location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:160: error: cannot find symbol public void paint(Graphics g) { ^ symbol: class Graphics location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:11: error: cannot find symbol setDoubleBuffered(false); ^ symbol: method setDoubleBuffered(boolean) location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:12: error: cannot find symbol toolkit = getToolkit(); ^ symbol: method getToolkit() location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:30: error: cannot find symbol BufferedImage bi = null; ^ symbol: class BufferedImage location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:32: error: cannot find symbol bi = (BufferedImage) g2.getDeviceConfiguration(). ^ symbol: class BufferedImage location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:35: error: cannot find symbol bi = new BufferedImage(w, h, imgType); ^ symbol: class BufferedImage location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:66: error: cannot find symbol IndexColorModel cm = null; ^ symbol: class IndexColorModel location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:69: error: cannot find symbol cm = new IndexColorModel(pixelBits, lut1Arr.length, ^ symbol: class IndexColorModel location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:73: error: cannot find symbol cm = new IndexColorModel(pixelBits, lut2Arr.length, ^ symbol: class IndexColorModel location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:77: error: cannot find symbol cm = new IndexColorModel(pixelBits, lut4Arr.length, ^ symbol: class IndexColorModel location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:84: error: cannot find symbol DataBuffer db = new DataBufferByte(imageData, imageData.length); ^ symbol: class DataBuffer location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:84: error: cannot find symbol DataBuffer db = new DataBufferByte(imageData, imageData.length); ^ symbol: class DataBufferByte location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:85: error: cannot find symbol WritableRaster r = Raster.createPackedRaster(db, w, h, pixelBits, null); ^ symbol: class WritableRaster location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:85: error: cannot find symbol WritableRaster r = Raster.createPackedRaster(db, w, h, pixelBits, null); ^ symbol: variable Raster location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:86: error: cannot find symbol return new BufferedImage(cm, r, false, null); ^ symbol: class BufferedImage location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:97: error: cannot find symbol DirectColorModel dcm = null; ^ symbol: class DirectColorModel location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:98: error: cannot find symbol DataBuffer db = null; ^ symbol: class DataBuffer location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:99: error: cannot find symbol WritableRaster wr = null; ^ symbol: class WritableRaster location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:103: error: cannot find symbol dcm = new DirectColorModel(16, rMask16, gMask16, bMask16); ^ symbol: class DirectColorModel location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:104: error: cannot find symbol db = new DataBufferUShort(imageDataUShort, imageDataUShort.length); ^ symbol: class DataBufferUShort location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:105: error: cannot find symbol wr = Raster.createPackedRaster(db, w, h, w, ^ symbol: variable Raster location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:111: error: cannot find symbol dcm = new DirectColorModel(32, rMask32, gMask32, bMask32); ^ symbol: class DirectColorModel location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:112: error: cannot find symbol db = new DataBufferInt(imageDataInt, imageDataInt.length); ^ symbol: class DataBufferInt location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:113: error: cannot find symbol wr = Raster.createPackedRaster(db, w, h, w, ^ symbol: variable Raster location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:121: error: cannot find symbol return new BufferedImage(dcm, wr, false, null); ^ symbol: class BufferedImage location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:126: error: cannot find symbol Graphics2D g2 = null; ^ symbol: class Graphics2D location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:131: error: cannot find symbol g2 = (Graphics2D) g; ^ symbol: class Graphics2D location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:134: error: cannot find symbol g2.setBackground(getBackground()); ^ symbol: method getBackground() location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:147: error: cannot find symbol RepaintManager repaintManager = null; ^ symbol: class RepaintManager location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:149: error: cannot find symbol if (!isDoubleBuffered()) { ^ symbol: method isDoubleBuffered() location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:150: error: cannot find symbol repaintManager = RepaintManager.currentManager(this); ^ symbol: variable RepaintManager location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:154: error: cannot find symbol super.paintImmediately(x, y, w, h); ^ symbol: variable super location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:161: error: cannot find symbol Dimension d = getSize(); ^ symbol: class Dimension location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:161: error: cannot find symbol Dimension d = getSize(); ^ symbol: method getSize() location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:166: error: cannot find symbol bimg = createBufferedImage((Graphics2D)g, ^ symbol: class Graphics2D location: class Surface /root/JavaX-Caches/tmp_1011959602/main.java:171: error: cannot find symbol Graphics2D g2 = createGraphics2D(d.width, d.height, bimg, g); ^ symbol: class Graphics2D location: class Surface 48 errors