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

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

/root/JavaX-Caches/tmp_101459754/main.java:1: error: class, interface, or enum expected !7 ^ /root/JavaX-Caches/tmp_101459754/main.java:8: error: class, interface, or enum expected static int bufferSize = 8192; ^ /root/JavaX-Caches/tmp_101459754/main.java:11: error: class, interface, or enum expected static LS ips = ll("192.168.2.165", "192.168.43.244"); ^ /root/JavaX-Caches/tmp_101459754/main.java:13: error: class, interface, or enum expected static AudioRecord recorder; ^ /root/JavaX-Caches/tmp_101459754/main.java:14: error: class, interface, or enum expected static new L<StefansOS_ConnectToServer> senders; ^ /root/JavaX-Caches/tmp_101459754/main.java:15: error: class, interface, or enum expected static new Q qSendAudio; ^ /root/JavaX-Caches/tmp_101459754/main.java:16: error: class, interface, or enum expected static new Q qVoiceOut; ^ /root/JavaX-Caches/tmp_101459754/main.java:18: error: class, interface, or enum expected p { ^ /root/JavaX-Caches/tmp_101459754/main.java:21: error: class, interface, or enum expected new StefansOS_ConnectToServer sender; ^ /root/JavaX-Caches/tmp_101459754/main.java:22: error: class, interface, or enum expected sender.server = ip; ^ /root/JavaX-Caches/tmp_101459754/main.java:23: error: class, interface, or enum expected sender.onLine = voidfunc(S s) { ^ /root/JavaX-Caches/tmp_101459754/main.java:24: error: class, interface, or enum expected final new Matches m; ^ /root/JavaX-Caches/tmp_101459754/main.java:25: error: class, interface, or enum expected if (startsWith_trim(s, "voiceOutput:", m)) ^ /root/JavaX-Caches/tmp_101459754/main.java:28: error: class, interface, or enum expected }); ^ /root/JavaX-Caches/tmp_101459754/main.java:29: error: class, interface, or enum expected }; ^ /root/JavaX-Caches/tmp_101459754/main.java:30: error: class, interface, or enum expected sender.startWithSubs("voiceOutput"); ^ /root/JavaX-Caches/tmp_101459754/main.java:31: error: class, interface, or enum expected senders.add(sender); ^ /root/JavaX-Caches/tmp_101459754/main.java:32: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_101459754/main.java:36: error: class, interface, or enum expected public void onReceive(Context context, Intent intent) { ^ /root/JavaX-Caches/tmp_101459754/main.java:38: error: class, interface, or enum expected print(+state); ^ /root/JavaX-Caches/tmp_101459754/main.java:39: error: class, interface, or enum expected if (AudioManager.SCO_AUDIO_STATE_CONNECTED == state) { ^ /root/JavaX-Caches/tmp_101459754/main.java:41: error: class, interface, or enum expected androidContext().unregisterReceiver(this); ^ /root/JavaX-Caches/tmp_101459754/main.java:42: error: class, interface, or enum expected thread { startRecording(); } ^ /root/JavaX-Caches/tmp_101459754/main.java:42: error: class, interface, or enum expected thread { startRecording(); } ^ /root/JavaX-Caches/tmp_101459754/main.java:47: error: class, interface, or enum expected AudioManager am = cast androidContext().getSystemService(Context.AUDIO_SERVICE); ^ /root/JavaX-Caches/tmp_101459754/main.java:48: error: class, interface, or enum expected androidContext().registerReceiver(brr, new IntentFilter(AudioManager.ACTION_SCO_AUDIO_STATE_UPDATED)); ^ /root/JavaX-Caches/tmp_101459754/main.java:49: error: class, interface, or enum expected print("Starting Bluetooth"); ^ /root/JavaX-Caches/tmp_101459754/main.java:50: error: class, interface, or enum expected am.setStreamSolo(AudioManager.MODE_IN_CALL, true); ^ /root/JavaX-Caches/tmp_101459754/main.java:51: error: class, interface, or enum expected am.setBluetoothScoOn(true); ^ /root/JavaX-Caches/tmp_101459754/main.java:52: error: class, interface, or enum expected am.setMode(AudioManager.MODE_IN_CALL); ^ /root/JavaX-Caches/tmp_101459754/main.java:53: error: class, interface, or enum expected am.startBluetoothSco(); ^ /root/JavaX-Caches/tmp_101459754/main.java:54: error: class, interface, or enum expected print("Can BT record from mic? " + am.isBluetoothScoAvailableOffCall()); ^ /root/JavaX-Caches/tmp_101459754/main.java:55: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_101459754/main.java:60: error: class, interface, or enum expected recorder = new AudioRecord.Builder() ^ /root/JavaX-Caches/tmp_101459754/main.java:72: error: class, interface, or enum expected print("Made recorder"); ^ /root/JavaX-Caches/tmp_101459754/main.java:74: error: class, interface, or enum expected recorder.startRecording(); ^ /root/JavaX-Caches/tmp_101459754/main.java:75: error: class, interface, or enum expected print("Started recording"); ^ /root/JavaX-Caches/tmp_101459754/main.java:77: error: class, interface, or enum expected byte[] buf = new[bufferSize]; ^ /root/JavaX-Caches/tmp_101459754/main.java:79: error: class, interface, or enum expected while licensed { ^ /root/JavaX-Caches/tmp_101459754/main.java:82: error: class, interface, or enum expected addToQAndPrintSize(+qSendAudio, r { ^ /root/JavaX-Caches/tmp_101459754/main.java:85: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_101459754/main.java:87: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_101459754/main.java:95: error: class, interface, or enum expected dispose senders; ^ /root/JavaX-Caches/tmp_101459754/main.java:96: error: class, interface, or enum expected } ^ 44 errors