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

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

/root/JavaX-Caches/tmp_1424038280/main.java:1: error: class, interface, or enum expected scope oshi_calcProcessCPUUsage. ^ /root/JavaX-Caches/tmp_1424038280/main.java:3: error: illegal character: '#' sbool #debug; ^ /root/JavaX-Caches/tmp_1424038280/main.java:5: error: illegal character: '#' sclass #Data { ^ /root/JavaX-Caches/tmp_1424038280/main.java:7: error: class, interface, or enum expected long cpuTime, timestamp; ^ /root/JavaX-Caches/tmp_1424038280/main.java:9: error: class, interface, or enum expected toString { ret "cpuTime=" + cpuTime + ", timestamp=" + timestamp + ", characteristics=" + characteristics; } ^ /root/JavaX-Caches/tmp_1424038280/main.java:9: error: class, interface, or enum expected toString { ret "cpuTime=" + cpuTime + ", timestamp=" + timestamp + ", characteristics=" + characteristics; } ^ /root/JavaX-Caches/tmp_1424038280/main.java:13: error: illegal character: '#' static Map<Int, Data> #map = synchroMap(); ^ /root/JavaX-Caches/tmp_1424038280/main.java:16: error: class, interface, or enum expected static double oshi_calcProcessCPUUsage(OSProcess p) { ^ /root/JavaX-Caches/tmp_1424038280/main.java:18: error: class, interface, or enum expected int pid = p.getProcessID(); ^ /root/JavaX-Caches/tmp_1424038280/main.java:19: error: class, interface, or enum expected Data data = map.get(pid); ^ /root/JavaX-Caches/tmp_1424038280/main.java:20: error: class, interface, or enum expected S characteristics = oshi_immutableProcessCharacteristics(p); ^ /root/JavaX-Caches/tmp_1424038280/main.java:21: error: class, interface, or enum expected if (data == null || neq(data.characteristics, characteristics)) { ^ /root/JavaX-Caches/tmp_1424038280/main.java:23: error: class, interface, or enum expected map.put(pid, data = new Data); ^ /root/JavaX-Caches/tmp_1424038280/main.java:24: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1424038280/main.java:27: error: class, interface, or enum expected long cpuTime = p.getKernelTime() + p.getUserTime(); ^ /root/JavaX-Caches/tmp_1424038280/main.java:29: error: class, interface, or enum expected double result = 0; ^ /root/JavaX-Caches/tmp_1424038280/main.java:30: error: class, interface, or enum expected long now = sysNow(); ^ /root/JavaX-Caches/tmp_1424038280/main.java:31: error: class, interface, or enum expected if (debug) ^ /root/JavaX-Caches/tmp_1424038280/main.java:33: error: class, interface, or enum expected if (data.timestamp != 0) ^ /root/JavaX-Caches/tmp_1424038280/main.java:35: error: class, interface, or enum expected data.timestamp = now; ^ /root/JavaX-Caches/tmp_1424038280/main.java:36: error: class, interface, or enum expected data.cpuTime = cpuTime; ^ /root/JavaX-Caches/tmp_1424038280/main.java:37: error: class, interface, or enum expected ret result; ^ /root/JavaX-Caches/tmp_1424038280/main.java:38: error: class, interface, or enum expected } ^ 23 errors