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

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

/root/JavaX-Caches/tmp_1404124333/main.java:1: error: class, interface, or enum expected scope oshi_calcProcessCPUUsage_v2. ^ /root/JavaX-Caches/tmp_1404124333/main.java:3: error: illegal character: '#' sclass #Data { ^ /root/JavaX-Caches/tmp_1404124333/main.java:5: error: class, interface, or enum expected OSProcess process; ^ /root/JavaX-Caches/tmp_1404124333/main.java:6: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1404124333/main.java:9: error: illegal character: '#' static Map<Int, Data> #map = synchroMap(); ^ /root/JavaX-Caches/tmp_1404124333/main.java:11: error: class, interface, or enum expected svoid _onLoad_oshi_calcProcessCPUUsage_v2 { ^ /root/JavaX-Caches/tmp_1404124333/main.java:12: error: unclosed character literal ownResource(vmBus_onMessage('osProcesses, voidfunc(L processes) { ^ /root/JavaX-Caches/tmp_1404124333/main.java:13: error: unclosed character literal Set<Int> keep = asHashSet(collectMethod(processes, 'getProcessID)); ^ /root/JavaX-Caches/tmp_1404124333/main.java:14: error: class, interface, or enum expected for (Iterator<Int> it = map.keySet().iterator(); it.hasNext(); ) { ^ /root/JavaX-Caches/tmp_1404124333/main.java:14: error: class, interface, or enum expected for (Iterator<Int> it = map.keySet().iterator(); it.hasNext(); ) { ^ /root/JavaX-Caches/tmp_1404124333/main.java:14: error: class, interface, or enum expected for (Iterator<Int> it = map.keySet().iterator(); it.hasNext(); ) { ^ /root/JavaX-Caches/tmp_1404124333/main.java:16: error: class, interface, or enum expected if (!keep.contains(pid)) { ^ /root/JavaX-Caches/tmp_1404124333/main.java:18: error: class, interface, or enum expected print("Lost process: [" + pid + "] " + data.process.getName()); ^ /root/JavaX-Caches/tmp_1404124333/main.java:19: error: class, interface, or enum expected it.remove(); ^ /root/JavaX-Caches/tmp_1404124333/main.java:20: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1404124333/main.java:23: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1404124333/main.java:28: error: class, interface, or enum expected int pid = p.getProcessID(); ^ /root/JavaX-Caches/tmp_1404124333/main.java:29: error: class, interface, or enum expected Data data = map.get(pid); ^ /root/JavaX-Caches/tmp_1404124333/main.java:30: error: class, interface, or enum expected if (data == null) ^ /root/JavaX-Caches/tmp_1404124333/main.java:33: error: class, interface, or enum expected long cpuTime = p.getKernelTime() + p.getUserTime(); ^ /root/JavaX-Caches/tmp_1404124333/main.java:35: error: class, interface, or enum expected double result = 0; ^ /root/JavaX-Caches/tmp_1404124333/main.java:36: error: class, interface, or enum expected long now = sysNow(); ^ /root/JavaX-Caches/tmp_1404124333/main.java:37: error: class, interface, or enum expected if (data.timestamp != 0) ^ /root/JavaX-Caches/tmp_1404124333/main.java:39: error: class, interface, or enum expected data.timestamp = now; ^ /root/JavaX-Caches/tmp_1404124333/main.java:40: error: class, interface, or enum expected data.cpuTime = cpuTime; ^ /root/JavaX-Caches/tmp_1404124333/main.java:41: error: class, interface, or enum expected ret result; ^ /root/JavaX-Caches/tmp_1404124333/main.java:42: error: class, interface, or enum expected } ^ 27 errors