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

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

/root/JavaX-Caches/tmp_1987875919/main.java:1: error: class, interface, or enum expected set flag AllPublic. ^ /root/JavaX-Caches/tmp_1987875919/main.java:7: error: class, interface, or enum expected static <A extends PApplet2> Pair<A, Frame> pMain2(final Class<A> c) { ^ /root/JavaX-Caches/tmp_1987875919/main.java:7: error: class, interface, or enum expected static <A extends PApplet2> Pair<A, Frame> pMain2(final Class<A> c) { ^ /root/JavaX-Caches/tmp_1987875919/main.java:10: error: class, interface, or enum expected Frame f = pMain2_runSketch(null, a); ^ /root/JavaX-Caches/tmp_1987875919/main.java:11: error: class, interface, or enum expected clearThreadLocal(PApplet2_instancesMade); ^ /root/JavaX-Caches/tmp_1987875919/main.java:12: error: class, interface, or enum expected ret pair(a, f); ^ /root/JavaX-Caches/tmp_1987875919/main.java:13: error: class, interface, or enum expected }); ^ /root/JavaX-Caches/tmp_1987875919/main.java:14: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1987875919/main.java:18: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1987875919/main.java:20: error: class, interface, or enum expected static Frame pMain2_runSketch(final String[] args, ^ /root/JavaX-Caches/tmp_1987875919/main.java:21: error: class, interface, or enum expected final PApplet constructedSketch) { ^ /root/JavaX-Caches/tmp_1987875919/main.java:27: error: class, interface, or enum expected System.setProperty("javafx.animation.fullspeed", "true"); ^ /root/JavaX-Caches/tmp_1987875919/main.java:32: error: class, interface, or enum expected Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() { ^ /root/JavaX-Caches/tmp_1987875919/main.java:33: error: class, interface, or enum expected public void uncaughtException(Thread t, Throwable e) { ^ /root/JavaX-Caches/tmp_1987875919/main.java:35: error: class, interface, or enum expected uncaughtThrowable = e; ^ /root/JavaX-Caches/tmp_1987875919/main.java:36: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1987875919/main.java:61: error: class, interface, or enum expected try { ^ /root/JavaX-Caches/tmp_1987875919/main.java:64: error: class, interface, or enum expected } catch (HeadlessException e) { ^ /root/JavaX-Caches/tmp_1987875919/main.java:66: error: class, interface, or enum expected System.err.println("https://github.com/processing/processing/wiki/Running-without-a-Display"); ^ /root/JavaX-Caches/tmp_1987875919/main.java:67: error: class, interface, or enum expected System.exit(1); ^ /root/JavaX-Caches/tmp_1987875919/main.java:68: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1987875919/main.java:73: error: class, interface, or enum expected if (args.length < 1) { ^ /root/JavaX-Caches/tmp_1987875919/main.java:75: error: class, interface, or enum expected System.err.println("See the Javadoc for PApplet for an explanation."); ^ /root/JavaX-Caches/tmp_1987875919/main.java:76: error: class, interface, or enum expected System.exit(1); ^ /root/JavaX-Caches/tmp_1987875919/main.java:77: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1987875919/main.java:80: error: class, interface, or enum expected int[] location = null; ^ /root/JavaX-Caches/tmp_1987875919/main.java:81: error: class, interface, or enum expected int[] editorLocation = null; ^ /root/JavaX-Caches/tmp_1987875919/main.java:83: error: class, interface, or enum expected String name = null; ^ /root/JavaX-Caches/tmp_1987875919/main.java:84: error: class, interface, or enum expected int windowColor = 0; ^ /root/JavaX-Caches/tmp_1987875919/main.java:85: error: class, interface, or enum expected int stopColor = 0xff808080; ^ /root/JavaX-Caches/tmp_1987875919/main.java:86: error: class, interface, or enum expected boolean hideStop = false; ^ /root/JavaX-Caches/tmp_1987875919/main.java:88: error: class, interface, or enum expected int displayNum = -1; // use default ^ /root/JavaX-Caches/tmp_1987875919/main.java:90: error: class, interface, or enum expected boolean present = false; ^ /root/JavaX-Caches/tmp_1987875919/main.java:92: error: class, interface, or enum expected int density = -1; ^ /root/JavaX-Caches/tmp_1987875919/main.java:94: error: class, interface, or enum expected String param = null, value = null; ^ /root/JavaX-Caches/tmp_1987875919/main.java:95: error: class, interface, or enum expected String folder = calcSketchPath(); ^ /root/JavaX-Caches/tmp_1987875919/main.java:97: error: class, interface, or enum expected int argIndex = 0; ^ /root/JavaX-Caches/tmp_1987875919/main.java:98: error: class, interface, or enum expected while (argIndex < args.length) { ^ /root/JavaX-Caches/tmp_1987875919/main.java:100: error: class, interface, or enum expected if (equals != -1) { ^ /root/JavaX-Caches/tmp_1987875919/main.java:102: error: class, interface, or enum expected value = args[argIndex].substring(equals + 1); ^ /root/JavaX-Caches/tmp_1987875919/main.java:104: error: class, interface, or enum expected if (param.equals(ARGS_EDITOR_LOCATION)) { ^ /root/JavaX-Caches/tmp_1987875919/main.java:106: error: class, interface, or enum expected editorLocation = parseInt(split(value, ',')); ^ /root/JavaX-Caches/tmp_1987875919/main.java:108: error: class, interface, or enum expected } else if (param.equals(ARGS_DISPLAY)) { ^ /root/JavaX-Caches/tmp_1987875919/main.java:110: error: class, interface, or enum expected if (displayNum == -1) { ^ /root/JavaX-Caches/tmp_1987875919/main.java:112: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1987875919/main.java:117: error: class, interface, or enum expected windowColor = 0xff000000 | Integer.parseInt(value, 16); ^ /root/JavaX-Caches/tmp_1987875919/main.java:118: error: class, interface, or enum expected } else { ^ /root/JavaX-Caches/tmp_1987875919/main.java:120: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1987875919/main.java:125: error: class, interface, or enum expected stopColor = 0xff000000 | Integer.parseInt(value, 16); ^ /root/JavaX-Caches/tmp_1987875919/main.java:126: error: class, interface, or enum expected } else { ^ /root/JavaX-Caches/tmp_1987875919/main.java:128: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1987875919/main.java:133: error: class, interface, or enum expected } else if (param.equals(ARGS_LOCATION)) { ^ /root/JavaX-Caches/tmp_1987875919/main.java:136: error: class, interface, or enum expected } else if (param.equals(ARGS_DENSITY)) { ^ /root/JavaX-Caches/tmp_1987875919/main.java:138: error: class, interface, or enum expected if (density == -1) { ^ /root/JavaX-Caches/tmp_1987875919/main.java:140: error: class, interface, or enum expected } else if (density != 1 && density != 2) { ^ /root/JavaX-Caches/tmp_1987875919/main.java:142: error: class, interface, or enum expected System.err.println(ARGS_DENSITY + " should be 1 or 2"); ^ /root/JavaX-Caches/tmp_1987875919/main.java:143: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1987875919/main.java:153: error: class, interface, or enum expected } else if (args[argIndex].equals(ARGS_HIDE_STOP)) { ^ /root/JavaX-Caches/tmp_1987875919/main.java:156: error: class, interface, or enum expected } else if (args[argIndex].equals(ARGS_EXTERNAL)) { ^ /root/JavaX-Caches/tmp_1987875919/main.java:159: error: class, interface, or enum expected } else { ^ /root/JavaX-Caches/tmp_1987875919/main.java:161: error: class, interface, or enum expected break; // because of break, argIndex won't increment again ^ /root/JavaX-Caches/tmp_1987875919/main.java:162: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1987875919/main.java:165: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1987875919/main.java:178: error: class, interface, or enum expected final PApplet sketch; ^ /root/JavaX-Caches/tmp_1987875919/main.java:179: error: class, interface, or enum expected if (constructedSketch != null) { ^ /root/JavaX-Caches/tmp_1987875919/main.java:181: error: class, interface, or enum expected } else { ^ /root/JavaX-Caches/tmp_1987875919/main.java:185: error: class, interface, or enum expected sketch = (PApplet) c.newInstance(); ^ /root/JavaX-Caches/tmp_1987875919/main.java:186: error: class, interface, or enum expected } catch (RuntimeException re) { ^ /root/JavaX-Caches/tmp_1987875919/main.java:189: error: class, interface, or enum expected } catch (Exception e) { ^ /root/JavaX-Caches/tmp_1987875919/main.java:192: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1987875919/main.java:197: error: class, interface, or enum expected final String td = "processing.core.ThinkDifferent"; ^ /root/JavaX-Caches/tmp_1987875919/main.java:198: error: class, interface, or enum expected Class<?> thinkDifferent = ^ /root/JavaX-Caches/tmp_1987875919/main.java:200: error: class, interface, or enum expected Method method = ^ /root/JavaX-Caches/tmp_1987875919/main.java:201: error: <identifier> expected thinkDifferent.getMethod("init", new Class[] { PApplet.class }); ^ /root/JavaX-Caches/tmp_1987875919/main.java:202: error: class, interface, or enum expected method.invoke(null, new Object[] { sketch }); ^ /root/JavaX-Caches/tmp_1987875919/main.java:203: error: class, interface, or enum expected } catch (Exception e) { ^ /root/JavaX-Caches/tmp_1987875919/main.java:205: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1987875919/main.java:214: error: class, interface, or enum expected sketch.suggestedDensity = density; ^ /root/JavaX-Caches/tmp_1987875919/main.java:216: error: class, interface, or enum expected sketch.present = present; ^ /root/JavaX-Caches/tmp_1987875919/main.java:225: error: class, interface, or enum expected sketch.sketchPath = folder; ^ /root/JavaX-Caches/tmp_1987875919/main.java:228: error: class, interface, or enum expected if (args.length != argIndex + 1) { ^ /root/JavaX-Caches/tmp_1987875919/main.java:232: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1987875919/main.java:255: error: class, interface, or enum expected sketch.external = external; ^ /root/JavaX-Caches/tmp_1987875919/main.java:257: error: class, interface, or enum expected if (windowColor != 0) { ^ /root/JavaX-Caches/tmp_1987875919/main.java:259: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1987875919/main.java:261: error: class, interface, or enum expected final PSurface surface = sketch.initSurface(); ^ /root/JavaX-Caches/tmp_1987875919/main.java:279: error: class, interface, or enum expected if (present) { ^ /root/JavaX-Caches/tmp_1987875919/main.java:282: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1987875919/main.java:284: error: class, interface, or enum expected } else { ^ /root/JavaX-Caches/tmp_1987875919/main.java:286: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1987875919/main.java:292: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1987875919/main.java:295: error: class, interface, or enum expected sketch.startSurface(); ^ /root/JavaX-Caches/tmp_1987875919/main.java:305: error: class, interface, or enum expected ret frame; ^ /root/JavaX-Caches/tmp_1987875919/main.java:306: error: class, interface, or enum expected } ^ 94 errors