Wrote /root/JavaX-Caches/tmp_1614418770/main.java - 11789 bytes (written=11789, should be 11789) javac=0, ecj=1, useJarBot=0 Checking ECJ at port 4898 at 127.0.0.1 /root/jdk-17/bin/javac -source 1.8 -target 1.8 -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_13557794 /root/JavaX-Caches/tmp_1614418770/main.java 2>&1
[Compilation Error]

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

/root/JavaX-Caches/tmp_1614418770/main.java:1: error: class, interface, or enum expected !7 ^ /root/JavaX-Caches/tmp_1614418770/main.java:4: error: class, interface, or enum expected static long timeout = 30000+10000; // idle time + latency ^ /root/JavaX-Caches/tmp_1614418770/main.java:5: error: class, interface, or enum expected static int port = 6000; ^ /root/JavaX-Caches/tmp_1614418770/main.java:6: error: class, interface, or enum expected static int maxLineLength = 10*1024*1024; // change #1020500 too if you change this ^ /root/JavaX-Caches/tmp_1614418770/main.java:11: error: class, interface, or enum expected static ConnectedInstances cI; ^ /root/JavaX-Caches/tmp_1614418770/main.java:12: error: class, interface, or enum expected static ReliableSingleThread rst = new(r update); ^ /root/JavaX-Caches/tmp_1614418770/main.java:13: error: class, interface, or enum expected static int theNumber; ^ /root/JavaX-Caches/tmp_1614418770/main.java:14: error: class, interface, or enum expected static Map<SocketChannel, State> dataMapper = synchroMap(); ^ /root/JavaX-Caches/tmp_1614418770/main.java:15: error: class, interface, or enum expected static ServerSocketChannel serverChannel; ^ /root/JavaX-Caches/tmp_1614418770/main.java:16: error: class, interface, or enum expected static Selector selector; ^ /root/JavaX-Caches/tmp_1614418770/main.java:17: error: class, interface, or enum expected static Map<S, Channel> channels = synchroMap(); ^ /root/JavaX-Caches/tmp_1614418770/main.java:18: error: class, interface, or enum expected static Lock channelsLock = lock(); ^ /root/JavaX-Caches/tmp_1614418770/main.java:19: error: class, interface, or enum expected static java.util.Timer mainTimer; ^ /root/JavaX-Caches/tmp_1614418770/main.java:20: error: class, interface, or enum expected sbool debug; ^ /root/JavaX-Caches/tmp_1614418770/main.java:22: error: class, interface, or enum expected sclass State { ^ /root/JavaX-Caches/tmp_1614418770/main.java:24: error: class, interface, or enum expected int countSeen = -1; ^ /root/JavaX-Caches/tmp_1614418770/main.java:25: error: class, interface, or enum expected new LineBuffer lineBuffer; ^ /root/JavaX-Caches/tmp_1614418770/main.java:26: error: class, interface, or enum expected long lastMessage = sysNow(); ^ /root/JavaX-Caches/tmp_1614418770/main.java:27: error: class, interface, or enum expected Map<S, Channel> subbedChannels = synchroLinkedHashMap(); ^ /root/JavaX-Caches/tmp_1614418770/main.java:28: error: class, interface, or enum expected Lock lock = lock(); ^ /root/JavaX-Caches/tmp_1614418770/main.java:31: error: class, interface, or enum expected L<byte[]> toSend = synchroLinkedList(); ^ /root/JavaX-Caches/tmp_1614418770/main.java:32: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1614418770/main.java:36: error: class, interface, or enum expected Set<SocketChannel> sockets = synchroSet(); ^ /root/JavaX-Caches/tmp_1614418770/main.java:37: error: class, interface, or enum expected Map<SocketChannel, A> dataMapper = synchroMap(); ^ /root/JavaX-Caches/tmp_1614418770/main.java:38: error: class, interface, or enum expected Lock lock = lock(); ^ /root/JavaX-Caches/tmp_1614418770/main.java:40: error: class, interface, or enum expected void addSocket(SocketChannel socket) { ^ /root/JavaX-Caches/tmp_1614418770/main.java:42: error: class, interface, or enum expected sockets.add(socket); ^ /root/JavaX-Caches/tmp_1614418770/main.java:43: error: class, interface, or enum expected initialMessage(socket); ^ /root/JavaX-Caches/tmp_1614418770/main.java:44: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1614418770/main.java:48: error: class, interface, or enum expected sockets.remove(socket); ^ /root/JavaX-Caches/tmp_1614418770/main.java:49: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1614418770/main.java:59: error: class, interface, or enum expected void initialMessage(SocketChannel socket) { ^ /root/JavaX-Caches/tmp_1614418770/main.java:61: error: class, interface, or enum expected sendTo(socket); ^ /root/JavaX-Caches/tmp_1614418770/main.java:62: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1614418770/main.java:67: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1614418770/main.java:71: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1614418770/main.java:77: error: class, interface, or enum expected void initialMessage(SocketChannel socket) { ^ /root/JavaX-Caches/tmp_1614418770/main.java:79: error: class, interface, or enum expected sendTo(socket); ^ /root/JavaX-Caches/tmp_1614418770/main.java:80: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1614418770/main.java:85: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1614418770/main.java:89: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1614418770/main.java:95: error: class, interface, or enum expected void handleLine(S line, SocketChannel socket) { ^ /root/JavaX-Caches/tmp_1614418770/main.java:97: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1614418770/main.java:101: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1614418770/main.java:105: error: class, interface, or enum expected while ((msg = syncPopFirst(msgs)) != null) { ^ /root/JavaX-Caches/tmp_1614418770/main.java:107: error: class, interface, or enum expected print("Chat send: " + shorten(quoted, 20)); ^ /root/JavaX-Caches/tmp_1614418770/main.java:108: error: class, interface, or enum expected quoted = "chat:" + quoted; ^ /root/JavaX-Caches/tmp_1614418770/main.java:109: error: class, interface, or enum expected for (SocketChannel s : sockets) ^ /root/JavaX-Caches/tmp_1614418770/main.java:111: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1614418770/main.java:117: error: class, interface, or enum expected new MultiMap<S, SocketChannel> clients; // key: computer ID ^ /root/JavaX-Caches/tmp_1614418770/main.java:119: error: class, interface, or enum expected void initialMessage(SocketChannel socket) { ^ /root/JavaX-Caches/tmp_1614418770/main.java:121: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1614418770/main.java:125: error: class, interface, or enum expected clients.remove(computerID(socket), socket); ^ /root/JavaX-Caches/tmp_1614418770/main.java:126: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1614418770/main.java:131: error: class, interface, or enum expected S computerID = takeFirst(line, i); ^ /root/JavaX-Caches/tmp_1614418770/main.java:132: error: class, interface, or enum expected while licensed { ^ /root/JavaX-Caches/tmp_1614418770/main.java:134: error: class, interface, or enum expected if (socket2 == null) break; ^ /root/JavaX-Caches/tmp_1614418770/main.java:135: error: class, interface, or enum expected try { ^ /root/JavaX-Caches/tmp_1614418770/main.java:137: error: class, interface, or enum expected if (l(line) >= 10000) ^ /root/JavaX-Caches/tmp_1614418770/main.java:139: error: class, interface, or enum expected sendLineToSocket(socket2, prefix + "privately from " + sender + ": " + substring(line, i+1)); ^ /root/JavaX-Caches/tmp_1614418770/main.java:140: error: class, interface, or enum expected break; ^ /root/JavaX-Caches/tmp_1614418770/main.java:141: error: class, interface, or enum expected } catch e { ^ /root/JavaX-Caches/tmp_1614418770/main.java:143: error: class, interface, or enum expected clients.remove(computerID, socket2); ^ /root/JavaX-Caches/tmp_1614418770/main.java:144: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1614418770/main.java:153: error: class, interface, or enum expected *() { ^ /root/JavaX-Caches/tmp_1614418770/main.java:154: error: illegal character: '#' tail = manualTailFile_newOnly(programFile(#1019175, "changes.log"), ^ /root/JavaX-Caches/tmp_1614418770/main.java:156: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1614418770/main.java:160: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1614418770/main.java:164: error: class, interface, or enum expected line = assertNoLineBreaks(line); ^ /root/JavaX-Caches/tmp_1614418770/main.java:165: error: class, interface, or enum expected print("Sockets: " + l(sockets)); ^ /root/JavaX-Caches/tmp_1614418770/main.java:167: error: class, interface, or enum expected for (SocketChannel s : sockets) ^ /root/JavaX-Caches/tmp_1614418770/main.java:169: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1614418770/main.java:174: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1614418770/main.java:178: error: class, interface, or enum expected ret state == null ? null : state.computerID; ^ /root/JavaX-Caches/tmp_1614418770/main.java:179: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1614418770/main.java:183: error: class, interface, or enum expected cI.setAfterglowInterval(1000); ^ /root/JavaX-Caches/tmp_1614418770/main.java:184: error: class, interface, or enum expected cI.connected2.onChange(rst); ^ /root/JavaX-Caches/tmp_1614418770/main.java:185: error: class, interface, or enum expected cI.start(); ^ /root/JavaX-Caches/tmp_1614418770/main.java:187: error: class, interface, or enum expected selector = Selector.open(); ^ /root/JavaX-Caches/tmp_1614418770/main.java:188: error: class, interface, or enum expected serverChannel = ServerSocketChannel.open(); ^ /root/JavaX-Caches/tmp_1614418770/main.java:189: error: class, interface, or enum expected serverChannel.configureBlocking(false); ^ /root/JavaX-Caches/tmp_1614418770/main.java:191: error: class, interface, or enum expected InetSocketAddress sockAddr = new InetSocketAddress(port); ^ /root/JavaX-Caches/tmp_1614418770/main.java:192: error: class, interface, or enum expected serverChannel.socket().bind(sockAddr); ^ /root/JavaX-Caches/tmp_1614418770/main.java:193: error: class, interface, or enum expected serverChannel.register(selector, SelectionKey.OP_ACCEPT); ^ /root/JavaX-Caches/tmp_1614418770/main.java:195: error: class, interface, or enum expected thread "Server Accept Loop" { acceptLoop(); } ^ /root/JavaX-Caches/tmp_1614418770/main.java:195: error: class, interface, or enum expected thread "Server Accept Loop" { acceptLoop(); } ^ /root/JavaX-Caches/tmp_1614418770/main.java:200: error: class, interface, or enum expected if (state != null && sysTime() >= state.lastMessage+timeout) pcall { ^ /root/JavaX-Caches/tmp_1614418770/main.java:202: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1614418770/main.java:206: error: class, interface, or enum expected channel.update(); ^ /root/JavaX-Caches/tmp_1614418770/main.java:207: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1614418770/main.java:209: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1614418770/main.java:214: error: class, interface, or enum expected for (SocketChannel socket : keys(getAndClearMap(dataMapper))) pcall { ^ /root/JavaX-Caches/tmp_1614418770/main.java:216: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1614418770/main.java:224: error: class, interface, or enum expected Iterator<SelectionKey> keys = selector.selectedKeys().iterator(); ^ /root/JavaX-Caches/tmp_1614418770/main.java:225: error: class, interface, or enum expected while (keys.hasNext()) { ^ /root/JavaX-Caches/tmp_1614418770/main.java:227: error: class, interface, or enum expected keys.remove(); ^ /root/JavaX-Caches/tmp_1614418770/main.java:228: error: class, interface, or enum expected debug "have key"; ^ /root/JavaX-Caches/tmp_1614418770/main.java:230: error: class, interface, or enum expected if (!key.isValid()) ^ /root/JavaX-Caches/tmp_1614418770/main.java:233: error: class, interface, or enum expected pcall { ^ /root/JavaX-Caches/tmp_1614418770/main.java:236: error: class, interface, or enum expected acceptOnSocket(key); ^ 100 errors only showing the first 100 errors, of 200 total; use -Xmaxerrs if you would like to see more