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

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

/root/JavaX-Caches/tmp_138824240/main.java:1: error: class, interface, or enum expected static long webSocketTimeOut = 60000; // can be changed per WebSocket ^ /root/JavaX-Caches/tmp_138824240/main.java:3: error: class, interface, or enum expected static O eleu_webSocket_onMessage, eleu_webSocket_new; ^ /root/JavaX-Caches/tmp_138824240/main.java:4: error: class, interface, or enum expected static O eleu_webSocket_handler; ^ /root/JavaX-Caches/tmp_138824240/main.java:6: error: class, interface, or enum expected static Set<MyWebSocket> webSockets = synchroHashSet(); ^ /root/JavaX-Caches/tmp_138824240/main.java:7: error: class, interface, or enum expected static new AtomicLong webSocketPings; ^ /root/JavaX-Caches/tmp_138824240/main.java:8: error: class, interface, or enum expected static new AtomicLong webSocketPongs; ^ /root/JavaX-Caches/tmp_138824240/main.java:10: error: class, interface, or enum expected svoid eleu_webSocket_init { ^ /root/JavaX-Caches/tmp_138824240/main.java:16: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_138824240/main.java:18: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_138824240/main.java:22: error: class, interface, or enum expected volatile long lastMessage = sysNow(); ^ /root/JavaX-Caches/tmp_138824240/main.java:23: error: class, interface, or enum expected S botID; ^ /root/JavaX-Caches/tmp_138824240/main.java:24: error: class, interface, or enum expected WeakReference bot; ^ /root/JavaX-Caches/tmp_138824240/main.java:25: error: class, interface, or enum expected long timeout = webSocketTimeOut; ^ /root/JavaX-Caches/tmp_138824240/main.java:27: error: class, interface, or enum expected *(NanoHTTPD.IHTTPSession handshake) { super(handshake); } ^ /root/JavaX-Caches/tmp_138824240/main.java:27: error: class, interface, or enum expected *(NanoHTTPD.IHTTPSession handshake) { super(handshake); } ^ /root/JavaX-Caches/tmp_138824240/main.java:29: error: class, interface, or enum expected public void sendFrame(WebSocketFrame frame) throws IOException { ^ /root/JavaX-Caches/tmp_138824240/main.java:32: error: class, interface, or enum expected lastMessage = sysNow(); ^ /root/JavaX-Caches/tmp_138824240/main.java:33: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_138824240/main.java:42: error: class, interface, or enum expected S s = messageFrame.getTextPayload(); ^ /root/JavaX-Caches/tmp_138824240/main.java:43: error: class, interface, or enum expected if (eq(s, "ping")) incAtomicLong(webSocketPongs); ^ /root/JavaX-Caches/tmp_138824240/main.java:44: error: class, interface, or enum expected pcall { ^ /root/JavaX-Caches/tmp_138824240/main.java:46: error: unclosed character literal call(getBot(botID), 'onWebSocketMessage, this, s); ^ /root/JavaX-Caches/tmp_138824240/main.java:47: error: class, interface, or enum expected else { ^ /root/JavaX-Caches/tmp_138824240/main.java:49: error: class, interface, or enum expected callF(eleu_webSocket_onMessage, this, s); ^ /root/JavaX-Caches/tmp_138824240/main.java:50: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_138824240/main.java:57: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_138824240/main.java:58: error: class, interface, or enum expected protected void onException(IOException e) { printStackTrace(e); } ^ /root/JavaX-Caches/tmp_138824240/main.java:62: error: class, interface, or enum expected if (botID != null) ^ /root/JavaX-Caches/tmp_138824240/main.java:63: error: unclosed character literal pcall(getBot(botID), 'onWebSocketClosed, this); ^ /root/JavaX-Caches/tmp_138824240/main.java:64: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_138824240/main.java:68: error: class, interface, or enum expected close(WebSocketFrame.CloseCode.NormalClosure, ""); ^ /root/JavaX-Caches/tmp_138824240/main.java:69: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_138824240/main.java:74: error: class, interface, or enum expected _removeMe(); ^ /root/JavaX-Caches/tmp_138824240/main.java:75: error: class, interface, or enum expected pcall { close(WebSocketFrame.CloseCode.NormalClosure, "timeout"); } ^ /root/JavaX-Caches/tmp_138824240/main.java:75: error: class, interface, or enum expected pcall { close(WebSocketFrame.CloseCode.NormalClosure, "timeout"); } ^ /root/JavaX-Caches/tmp_138824240/main.java:82: error: class, interface, or enum expected eleu_webSocket_handler = func(final NanoHTTPD.IHTTPSession handshake) { ^ /root/JavaX-Caches/tmp_138824240/main.java:84: error: class, interface, or enum expected S uri = handshake.getUri(); ^ /root/JavaX-Caches/tmp_138824240/main.java:85: error: class, interface, or enum expected print("WebSocket URI: " + uri); ^ /root/JavaX-Caches/tmp_138824240/main.java:86: error: class, interface, or enum expected webSockets.add(ws); ^ /root/JavaX-Caches/tmp_138824240/main.java:87: error: class, interface, or enum expected bool dispatched = false; ^ /root/JavaX-Caches/tmp_138824240/main.java:88: error: class, interface, or enum expected try { ^ /root/JavaX-Caches/tmp_138824240/main.java:90: error: class, interface, or enum expected int i = smartIndexOf(uri, '/'); ^ /root/JavaX-Caches/tmp_138824240/main.java:91: error: class, interface, or enum expected S botID = takeFirst(i, uri); ^ /root/JavaX-Caches/tmp_138824240/main.java:92: error: class, interface, or enum expected if (isInteger(botID)) { ^ /root/JavaX-Caches/tmp_138824240/main.java:94: error: class, interface, or enum expected dispatched = true; ^ /root/JavaX-Caches/tmp_138824240/main.java:95: error: class, interface, or enum expected O bot = getBot(botID); ^ /root/JavaX-Caches/tmp_138824240/main.java:96: error: class, interface, or enum expected if (bot == null) fail("Bot not found: " + botID); ^ /root/JavaX-Caches/tmp_138824240/main.java:97: error: class, interface, or enum expected ws.bot = new WeakReference(bot); ^ /root/JavaX-Caches/tmp_138824240/main.java:98: error: class, interface, or enum expected call(bot, 'onNewWebSocket, ws, or2(substring(uri, i), "/")); ^ /root/JavaX-Caches/tmp_138824240/main.java:98: error: unclosed character literal call(bot, 'onNewWebSocket, ws, or2(substring(uri, i), "/")); ^ /root/JavaX-Caches/tmp_138824240/main.java:99: error: class, interface, or enum expected print("WebSocket dispatched to " + botID); ^ /root/JavaX-Caches/tmp_138824240/main.java:100: error: class, interface, or enum expected ws.botID = botID; ^ /root/JavaX-Caches/tmp_138824240/main.java:101: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_138824240/main.java:104: error: class, interface, or enum expected ws.closeMe(); ^ /root/JavaX-Caches/tmp_138824240/main.java:105: error: class, interface, or enum expected null; ^ /root/JavaX-Caches/tmp_138824240/main.java:106: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_138824240/main.java:109: error: class, interface, or enum expected ret ws; ^ /root/JavaX-Caches/tmp_138824240/main.java:110: error: class, interface, or enum expected }; ^ /root/JavaX-Caches/tmp_138824240/main.java:111: error: class, interface, or enum expected ret eleu_webSocket_handler; ^ /root/JavaX-Caches/tmp_138824240/main.java:112: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_138824240/main.java:116: error: class, interface, or enum expected } ^ 61 errors