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

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

/root/JavaX-Caches/tmp_1483631913/main.java:3: error: class, interface, or enum expected switchable int httpPort = 80; ^ /root/JavaX-Caches/tmp_1483631913/main.java:4: error: class, interface, or enum expected switchable int httpsPort = 443; ^ /root/JavaX-Caches/tmp_1483631913/main.java:5: error: class, interface, or enum expected transient autoDispose MyHTTPD httpServer; ^ /root/JavaX-Caches/tmp_1483631913/main.java:6: error: class, interface, or enum expected transient autoDispose MyHTTPD httpsServer; ^ /root/JavaX-Caches/tmp_1483631913/main.java:7: error: class, interface, or enum expected transient bool redirectHttpToHttps; ^ /root/JavaX-Caches/tmp_1483631913/main.java:9: error: class, interface, or enum expected transient new HTTPSpamBlocker1 spamBlocker; ^ /root/JavaX-Caches/tmp_1483631913/main.java:11: error: class, interface, or enum expected void start_webServers(File keyStore, S passphrase) { ^ /root/JavaX-Caches/tmp_1483631913/main.java:13: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1483631913/main.java:18: error: class, interface, or enum expected httpServer.enter = lambda0 enter; ^ /root/JavaX-Caches/tmp_1483631913/main.java:19: error: class, interface, or enum expected httpServer.serveFunction = func(S uri, SS parms) { ^ /root/JavaX-Caches/tmp_1483631913/main.java:25: error: class, interface, or enum expected httpServer.start(); ^ /root/JavaX-Caches/tmp_1483631913/main.java:26: error: class, interface, or enum expected print("HTTP server started on port " + httpServer.getPort()); ^ /root/JavaX-Caches/tmp_1483631913/main.java:27: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1483631913/main.java:30: error: class, interface, or enum expected httpsServer = new MyHTTPD(httpsPort); ^ /root/JavaX-Caches/tmp_1483631913/main.java:31: error: class, interface, or enum expected httpsServer.enter = lambda0 enter; ^ /root/JavaX-Caches/tmp_1483631913/main.java:32: error: class, interface, or enum expected httpsServer.makeSecure(sslSocketFactory); ^ /root/JavaX-Caches/tmp_1483631913/main.java:33: error: class, interface, or enum expected httpsServer.serveFunction = func(S uri, SS parms) { webServe(uri, parms) }; ^ /root/JavaX-Caches/tmp_1483631913/main.java:34: error: class, interface, or enum expected httpsServer.start(); ^ /root/JavaX-Caches/tmp_1483631913/main.java:35: error: class, interface, or enum expected print("HTTPS server started on port " + httpsServer.getPort()); ^ /root/JavaX-Caches/tmp_1483631913/main.java:36: error: class, interface, or enum expected } ^ 20 errors