Wrote /root/JavaX-Caches/tmp_777582505/main.java - 1651 bytes (written=1651, should be 1651) 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:/root/.tinybrain/snippet-cache/1400215.jar -d /root/JavaX-Caches/tmp_698488270 /root/JavaX-Caches/tmp_777582505/main.java 2>&1
[Compilation Error]

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

/root/JavaX-Caches/tmp_777582505/main.java:1: error: class, interface, or enum expected ifndef DifferentJDA ^ /root/JavaX-Caches/tmp_777582505/main.java:15: error: class, interface, or enum expected static JDA discordBot(final VF1<MessageReceivedEvent> onMessage) { ^ /root/JavaX-Caches/tmp_777582505/main.java:15: error: class, interface, or enum expected static JDA discordBot(final VF1<MessageReceivedEvent> onMessage) { ^ /root/JavaX-Caches/tmp_777582505/main.java:18: error: class, interface, or enum expected public void onMessageReceived(MessageReceivedEvent e) { ^ /root/JavaX-Caches/tmp_777582505/main.java:20: error: class, interface, or enum expected pcallF(onMessage, e); ^ /root/JavaX-Caches/tmp_777582505/main.java:21: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_777582505/main.java:23: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_777582505/main.java:27: error: class, interface, or enum expected JDABuilder builder = new(AccountType.BOT); ^ /root/JavaX-Caches/tmp_777582505/main.java:28: error: class, interface, or enum expected print("Have JDABuilder"); ^ /root/JavaX-Caches/tmp_777582505/main.java:29: error: class, interface, or enum expected S token = stringPar token(_); ^ /root/JavaX-Caches/tmp_777582505/main.java:30: error: class, interface, or enum expected if (empty(token)) { ^ /root/JavaX-Caches/tmp_777582505/main.java:32: error: class, interface, or enum expected token = assertNempty("Need: " + tokenFile, trim(loadTextFile(tokenFile))); ^ /root/JavaX-Caches/tmp_777582505/main.java:33: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_777582505/main.java:35: error: class, interface, or enum expected builder.addEventListener(listener); ^ /root/JavaX-Caches/tmp_777582505/main.java:36: error: class, interface, or enum expected print("Building JDA with token " + shorten(10, token)); ^ /root/JavaX-Caches/tmp_777582505/main.java:37: error: class, interface, or enum expected JDA jda = builder.build(); ^ /root/JavaX-Caches/tmp_777582505/main.java:38: error: class, interface, or enum expected print("Got JDA: " + jda); ^ /root/JavaX-Caches/tmp_777582505/main.java:39: error: class, interface, or enum expected jda.addEventListener(new ListenerAdapter { ^ /root/JavaX-Caches/tmp_777582505/main.java:40: error: class, interface, or enum expected public void onStatusChange(StatusChangeEvent event) { ^ /root/JavaX-Caches/tmp_777582505/main.java:42: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_777582505/main.java:45: error: class, interface, or enum expected jda.awaitReady(); ^ /root/JavaX-Caches/tmp_777582505/main.java:46: error: class, interface, or enum expected print("Started Discord bot (token: " + shorten(token, 7) + ")"); ^ /root/JavaX-Caches/tmp_777582505/main.java:47: error: class, interface, or enum expected ret jda; ^ /root/JavaX-Caches/tmp_777582505/main.java:48: error: class, interface, or enum expected } ^ 24 errors