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

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

/root/JavaX-Caches/tmp_740301159/main.java:1: error: class, interface, or enum expected !636 ^ /root/JavaX-Caches/tmp_740301159/main.java:6: error: class, interface, or enum expected static L<S> emotions = litlist( ^ /root/JavaX-Caches/tmp_740301159/main.java:13: error: class, interface, or enum expected static int borderColor = 0xFFFFFFFF; ^ /root/JavaX-Caches/tmp_740301159/main.java:14: error: class, interface, or enum expected static S lastEmotion; ^ /root/JavaX-Caches/tmp_740301159/main.java:15: error: class, interface, or enum expected static JFrame emo_frame; ^ /root/JavaX-Caches/tmp_740301159/main.java:16: error: class, interface, or enum expected static ImageSurface img; ^ /root/JavaX-Caches/tmp_740301159/main.java:17: error: class, interface, or enum expected static JTextField textField; ^ /root/JavaX-Caches/tmp_740301159/main.java:19: error: class, interface, or enum expected static void emo(S emotion) { ^ /root/JavaX-Caches/tmp_740301159/main.java:21: error: class, interface, or enum expected if (emo_frame == null) { ^ /root/JavaX-Caches/tmp_740301159/main.java:24: error: class, interface, or enum expected img = new ImageSurface(); ^ /root/JavaX-Caches/tmp_740301159/main.java:25: error: class, interface, or enum expected img.setImage(loadImage(emotions.get(0))); ^ /root/JavaX-Caches/tmp_740301159/main.java:26: error: class, interface, or enum expected textField = new JTextField(); ^ /root/JavaX-Caches/tmp_740301159/main.java:27: error: class, interface, or enum expected textField.addActionListener(actionListener { ^ /root/JavaX-Caches/tmp_740301159/main.java:29: error: class, interface, or enum expected handleText(textField.getText()); ^ /root/JavaX-Caches/tmp_740301159/main.java:30: error: class, interface, or enum expected }); ^ /root/JavaX-Caches/tmp_740301159/main.java:32: error: class, interface, or enum expected emo_frame.getContentPane().setLayout(new BorderLayout); ^ /root/JavaX-Caches/tmp_740301159/main.java:33: error: class, interface, or enum expected emo_frame.getContentPane().add(BorderLayout.CENTER, img); ^ /root/JavaX-Caches/tmp_740301159/main.java:34: error: class, interface, or enum expected emo_frame.getContentPane().add(BorderLayout.SOUTH, textField); ^ /root/JavaX-Caches/tmp_740301159/main.java:36: error: class, interface, or enum expected emo_frame.pack(); ^ /root/JavaX-Caches/tmp_740301159/main.java:37: error: class, interface, or enum expected centerFrame(emo_frame); ^ /root/JavaX-Caches/tmp_740301159/main.java:38: error: class, interface, or enum expected emo_frame.setVisible(true); ^ /root/JavaX-Caches/tmp_740301159/main.java:39: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_740301159/main.java:41: error: class, interface, or enum expected for (i = 0; i < emotions.size(); i += 2) ^ /root/JavaX-Caches/tmp_740301159/main.java:41: error: class, interface, or enum expected for (i = 0; i < emotions.size(); i += 2) ^ /root/JavaX-Caches/tmp_740301159/main.java:41: error: class, interface, or enum expected for (i = 0; i < emotions.size(); i += 2) ^ /root/JavaX-Caches/tmp_740301159/main.java:44: error: class, interface, or enum expected if (i >= emotions.size()) { ^ /root/JavaX-Caches/tmp_740301159/main.java:47: error: class, interface, or enum expected i -= 2; ^ /root/JavaX-Caches/tmp_740301159/main.java:48: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_740301159/main.java:50: error: class, interface, or enum expected img.setImage(loadImage(emotions.get(i))); ^ /root/JavaX-Caches/tmp_740301159/main.java:51: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_740301159/main.java:56: error: class, interface, or enum expected static void happy() { emo("happy"); } ^ /root/JavaX-Caches/tmp_740301159/main.java:57: error: class, interface, or enum expected static void unhappy() { emo("unhappy"); } ^ /root/JavaX-Caches/tmp_740301159/main.java:58: error: class, interface, or enum expected static void oh() { emo("oh"); } ^ /root/JavaX-Caches/tmp_740301159/main.java:59: error: class, interface, or enum expected static void bored() { emo("bored"); } ^ /root/JavaX-Caches/tmp_740301159/main.java:60: error: class, interface, or enum expected static void wideMouth() { emo("wide mouth"); } ^ /root/JavaX-Caches/tmp_740301159/main.java:64: error: class, interface, or enum expected if (emo_frame != null) { ^ /root/JavaX-Caches/tmp_740301159/main.java:66: error: class, interface, or enum expected emo_frame = null; ^ /root/JavaX-Caches/tmp_740301159/main.java:67: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_740301159/main.java:70: error: class, interface, or enum expected swingLater(1000, runnable { ^ /root/JavaX-Caches/tmp_740301159/main.java:72: error: class, interface, or enum expected }); ^ /root/JavaX-Caches/tmp_740301159/main.java:73: error: class, interface, or enum expected }); ^ /root/JavaX-Caches/tmp_740301159/main.java:74: error: class, interface, or enum expected } ^ 42 errors