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

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

/root/JavaX-Caches/tmp_499173699/main.java:1: error: class, interface, or enum expected ifndef DifferentJDA ^ /root/JavaX-Caches/tmp_499173699/main.java:14: error: class, interface, or enum expected static JDA discordBot40(VF1<MessageReceivedEvent> onMessage) { ^ /root/JavaX-Caches/tmp_499173699/main.java:17: error: class, interface, or enum expected public void onMessageReceived(MessageReceivedEvent e) { ^ /root/JavaX-Caches/tmp_499173699/main.java:19: error: class, interface, or enum expected pcallF(onMessage, e); ^ /root/JavaX-Caches/tmp_499173699/main.java:20: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_499173699/main.java:22: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_499173699/main.java:26: error: class, interface, or enum expected JDABuilder builder = new(AccountType.BOT); ^ /root/JavaX-Caches/tmp_499173699/main.java:27: error: class, interface, or enum expected print("Have JDABuilder"); ^ /root/JavaX-Caches/tmp_499173699/main.java:28: error: class, interface, or enum expected S token = stringPar token(_); ^ /root/JavaX-Caches/tmp_499173699/main.java:29: error: class, interface, or enum expected if (empty(token)) { ^ /root/JavaX-Caches/tmp_499173699/main.java:31: error: class, interface, or enum expected token = assertNempty("Need: " + tokenFile, trim(loadTextFile(tokenFile))); ^ /root/JavaX-Caches/tmp_499173699/main.java:32: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_499173699/main.java:34: error: class, interface, or enum expected builder.addEventListeners(listener); ^ /root/JavaX-Caches/tmp_499173699/main.java:35: error: class, interface, or enum expected print("Building JDA with token " + shorten(10, token)); ^ /root/JavaX-Caches/tmp_499173699/main.java:36: error: class, interface, or enum expected JDA jda = builder.build(); ^ /root/JavaX-Caches/tmp_499173699/main.java:37: error: class, interface, or enum expected print("Got JDA: " + jda); ^ /root/JavaX-Caches/tmp_499173699/main.java:39: error: class, interface, or enum expected jda.awaitReady(); ^ /root/JavaX-Caches/tmp_499173699/main.java:40: error: class, interface, or enum expected print("Started Discord bot (token: " + shorten(token, 7) + ")"); ^ /root/JavaX-Caches/tmp_499173699/main.java:41: error: class, interface, or enum expected ret jda; ^ /root/JavaX-Caches/tmp_499173699/main.java:42: error: class, interface, or enum expected } ^ 20 errors