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

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

/root/JavaX-Caches/tmp_699277798/main.java:1: error: class, interface, or enum expected !636 ^ /root/JavaX-Caches/tmp_699277798/main.java:20: error: class, interface, or enum expected main { ^ /root/JavaX-Caches/tmp_699277798/main.java:55: error: '(' or '[' expected new List<String> links; ^ /root/JavaX-Caches/tmp_699277798/main.java:64: error: '(' or '[' expected new StringBuilder buf; ^ /root/JavaX-Caches/tmp_699277798/main.java:89: error: class, interface, or enum expected private static MyHTTPD server; ^ /root/JavaX-Caches/tmp_699277798/main.java:90: error: class, interface, or enum expected private static int port = 8888; ^ /root/JavaX-Caches/tmp_699277798/main.java:92: error: class, interface, or enum expected static new (Tree)Set<String> peers; ^ /root/JavaX-Caches/tmp_699277798/main.java:94: error: class, interface, or enum expected psvm { ^ /root/JavaX-Caches/tmp_699277798/main.java:96: error: class, interface, or enum expected server.start(); ^ /root/JavaX-Caches/tmp_699277798/main.java:97: error: class, interface, or enum expected System.out.println("HTTP server started (listening on port " + port + "!)"); ^ /root/JavaX-Caches/tmp_699277798/main.java:98: error: class, interface, or enum expected printMyIPs(); ^ /root/JavaX-Caches/tmp_699277798/main.java:99: error: class, interface, or enum expected server.join(); // keep main thread alive ^ /root/JavaX-Caches/tmp_699277798/main.java:100: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_699277798/main.java:104: error: class, interface, or enum expected try { ^ /root/JavaX-Caches/tmp_699277798/main.java:106: error: class, interface, or enum expected while (interfaces.hasMoreElements()) { ^ /root/JavaX-Caches/tmp_699277798/main.java:109: error: class, interface, or enum expected if (iface.isLoopback() || !iface.isUp()) ^ /root/JavaX-Caches/tmp_699277798/main.java:112: error: class, interface, or enum expected Enumeration<InetAddress> addresses = iface.getInetAddresses(); ^ /root/JavaX-Caches/tmp_699277798/main.java:113: error: class, interface, or enum expected while(addresses.hasMoreElements()) { ^ /root/JavaX-Caches/tmp_699277798/main.java:115: error: class, interface, or enum expected if (addr instanceof Inet4Address) { // we still stick to the old stuff... until the new stuff comes along! ^ /root/JavaX-Caches/tmp_699277798/main.java:117: error: class, interface, or enum expected System.out.println("\nPlease visit http://" + ip + ":" + port + " to see me!"); ^ /root/JavaX-Caches/tmp_699277798/main.java:118: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_699277798/main.java:123: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_699277798/main.java:129: error: class, interface, or enum expected return dateFormat.format(new Date()); ^ /root/JavaX-Caches/tmp_699277798/main.java:130: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_699277798/main.java:133: error: illegal character: '#' !include #1000433 // class NanoHTTP ^ 25 errors