Wrote /root/JavaX-Caches/tmp_6906666/main.java - 3136 bytes (written=3136, should be 3136)
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_51506315 /root/JavaX-Caches/tmp_6906666/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_6906666/main.java:1: error: class, interface, or enum expected
!7
^
/root/JavaX-Caches/tmp_6906666/main.java:6: error: class, interface, or enum expected
static long timeout = 30000+10000; // idle time + latency
^
/root/JavaX-Caches/tmp_6906666/main.java:7: error: class, interface, or enum expected
static ConnectedInstances cI;
^
/root/JavaX-Caches/tmp_6906666/main.java:8: error: class, interface, or enum expected
static ReliableSingleThread rst = new(r update);
^
/root/JavaX-Caches/tmp_6906666/main.java:9: error: class, interface, or enum expected
static int theNumber;
^
/root/JavaX-Caches/tmp_6906666/main.java:10: error: class, interface, or enum expected
static int port = 6000;
^
/root/JavaX-Caches/tmp_6906666/main.java:11: error: class, interface, or enum expected
static Set channels = synchroSet();
^
/root/JavaX-Caches/tmp_6906666/main.java:13: error: class, interface, or enum expected
sclass State {
^
/root/JavaX-Caches/tmp_6906666/main.java:15: error: class, interface, or enum expected
int countSeen = -1;
^
/root/JavaX-Caches/tmp_6906666/main.java:16: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_6906666/main.java:20: error: class, interface, or enum expected
cI.connected2.onChange(rst);
^
/root/JavaX-Caches/tmp_6906666/main.java:22: error: class, interface, or enum expected
InetSocketAddress sockAddr = new InetSocketAddress(port);
^
/root/JavaX-Caches/tmp_6906666/main.java:23: error: class, interface, or enum expected
AsynchronousServerSocketChannel serverSock = AsynchronousServerSocketChannel.open().bind(sockAddr);
^
/root/JavaX-Caches/tmp_6906666/main.java:26: error: class, interface, or enum expected
serverSock.accept(serverSock, new CompletionHandler() {
^
/root/JavaX-Caches/tmp_6906666/main.java:27: error: class, interface, or enum expected
public void completed(AsynchronousSocketChannel sockChannel, AsynchronousServerSocketChannel serverSock) {
^
/root/JavaX-Caches/tmp_6906666/main.java:31: error: class, interface, or enum expected
channels.add(channel);
^
/root/JavaX-Caches/tmp_6906666/main.java:34: error: class, interface, or enum expected
startRead( sockChannel );
^
/root/JavaX-Caches/tmp_6906666/main.java:35: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_6906666/main.java:37: error: class, interface, or enum expected
public void failed(Throwable exc, AsynchronousServerSocketChannel serverSock) {
^
/root/JavaX-Caches/tmp_6906666/main.java:39: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_6906666/main.java:41: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_6906666/main.java:44: error: class, interface, or enum expected
final ByteBuffer buf = ByteBuffer.allocate(2048);
^
/root/JavaX-Caches/tmp_6906666/main.java:47: error: class, interface, or enum expected
sockChannel.read(buf, sockChannel, new CompletionHandler() {
^
/root/JavaX-Caches/tmp_6906666/main.java:49: error: class, interface, or enum expected
public void completed(Int result, AsynchronousSocketChannel channel) {
^
/root/JavaX-Caches/tmp_6906666/main.java:53: error: class, interface, or enum expected
startWrite(channel, buf);
^
/root/JavaX-Caches/tmp_6906666/main.java:56: error: class, interface, or enum expected
startRead(channel);
^
/root/JavaX-Caches/tmp_6906666/main.java:57: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_6906666/main.java:60: error: class, interface, or enum expected
public void failed(Throwable exc, AsynchronousSocketChannel channel) {
^
/root/JavaX-Caches/tmp_6906666/main.java:62: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_6906666/main.java:64: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_6906666/main.java:66: error: class, interface, or enum expected
static void startWrite(AsynchronousSocketChannel sockChannel, final ByteBuffer buf) {
^
/root/JavaX-Caches/tmp_6906666/main.java:69: error: class, interface, or enum expected
public void completed(Int result, AsynchronousSocketChannel channel) {
^
/root/JavaX-Caches/tmp_6906666/main.java:75: error: class, interface, or enum expected
public void failed(Throwable exc, AsynchronousSocketChannel channel) {
^
/root/JavaX-Caches/tmp_6906666/main.java:77: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_6906666/main.java:79: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_6906666/main.java:81: error: class, interface, or enum expected
html { ret "Use port " + port; }
^
/root/JavaX-Caches/tmp_6906666/main.java:85: error: class, interface, or enum expected
if (s != null && theNumber != s.countSeen) {
^
/root/JavaX-Caches/tmp_6906666/main.java:87: error: class, interface, or enum expected
print("Sending number to " + s.computerID + ": " + theNumber);
^
/root/JavaX-Caches/tmp_6906666/main.java:88: error: class, interface, or enum expected
call(ws, 'send, str(theNumber));
^
/root/JavaX-Caches/tmp_6906666/main.java:88: error: unclosed character literal
call(ws, 'send, str(theNumber));
^
/root/JavaX-Caches/tmp_6906666/main.java:89: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_6906666/main.java:94: error: class, interface, or enum expected
if (webSocketManager.isEmpty()) ret;
^
/root/JavaX-Caches/tmp_6906666/main.java:96: error: class, interface, or enum expected
int value = cI.value();
^
/root/JavaX-Caches/tmp_6906666/main.java:98: error: class, interface, or enum expected
theNumber = value;
^
/root/JavaX-Caches/tmp_6906666/main.java:99: error: class, interface, or enum expected
for (O ws : webSocketManager.webSockets()) pcall {
^
/root/JavaX-Caches/tmp_6906666/main.java:101: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_6906666/main.java:103: error: class, interface, or enum expected
}
^
47 errors