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

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

/root/JavaX-Caches/tmp_1096406631/main.java:1: error: class, interface, or enum expected !747 ^ /root/JavaX-Caches/tmp_1096406631/main.java:16: error: class, interface, or enum expected main { ^ /root/JavaX-Caches/tmp_1096406631/main.java:19: error: class, interface, or enum expected static SpeechRecognizer sr; ^ /root/JavaX-Caches/tmp_1096406631/main.java:20: error: class, interface, or enum expected static final String TAG = "MyStt3Activity"; ^ /root/JavaX-Caches/tmp_1096406631/main.java:21: error: class, interface, or enum expected static boolean loop = true; ^ /root/JavaX-Caches/tmp_1096406631/main.java:22: error: class, interface, or enum expected static S language = "de-DE"; ^ /root/JavaX-Caches/tmp_1096406631/main.java:23: error: class, interface, or enum expected static int extraResults = 1; ^ /root/JavaX-Caches/tmp_1096406631/main.java:25: error: class, interface, or enum expected static S voice = "Leopold"; ^ /root/JavaX-Caches/tmp_1096406631/main.java:27: error: class, interface, or enum expected static new L<S> history; ^ /root/JavaX-Caches/tmp_1096406631/main.java:29: error: class, interface, or enum expected p { ^ /root/JavaX-Caches/tmp_1096406631/main.java:32: error: class, interface, or enum expected androidContext.runOnUiThread(runnable { ^ /root/JavaX-Caches/tmp_1096406631/main.java:35: error: class, interface, or enum expected }); ^ /root/JavaX-Caches/tmp_1096406631/main.java:36: error: class, interface, or enum expected sleep(); ^ /root/JavaX-Caches/tmp_1096406631/main.java:37: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1096406631/main.java:41: error: class, interface, or enum expected sr.setRecognitionListener(new listener()); ^ /root/JavaX-Caches/tmp_1096406631/main.java:42: error: class, interface, or enum expected recog(); ^ /root/JavaX-Caches/tmp_1096406631/main.java:43: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1096406631/main.java:78: error: not a statement thread { ^ /root/JavaX-Caches/tmp_1096406631/main.java:78: error: ';' expected thread { ^ /root/JavaX-Caches/tmp_1096406631/main.java:94: error: ')' expected androidContext.runOnUiThread(runnable { ^ /root/JavaX-Caches/tmp_1096406631/main.java:102: error: illegal start of expression }); ^ /root/JavaX-Caches/tmp_1096406631/main.java:110: error: class, interface, or enum expected static void recog() { ^ /root/JavaX-Caches/tmp_1096406631/main.java:112: error: class, interface, or enum expected intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,RecognizerIntent.LANGUAGE_MODEL_FREE_FORM); ^ /root/JavaX-Caches/tmp_1096406631/main.java:113: error: class, interface, or enum expected intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, language); ^ /root/JavaX-Caches/tmp_1096406631/main.java:114: error: class, interface, or enum expected intent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE,"voice.recognition.test"); ^ /root/JavaX-Caches/tmp_1096406631/main.java:116: error: class, interface, or enum expected intent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, extraResults); ^ /root/JavaX-Caches/tmp_1096406631/main.java:117: error: class, interface, or enum expected sr.startListening(intent); ^ /root/JavaX-Caches/tmp_1096406631/main.java:119: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1096406631/main.java:123: error: class, interface, or enum expected File mp3 = new File(getProgramDir(), "bla.mp3"); ^ /root/JavaX-Caches/tmp_1096406631/main.java:124: error: class, interface, or enum expected makeSpeechCereproc(s, voice, mp3); ^ /root/JavaX-Caches/tmp_1096406631/main.java:125: error: class, interface, or enum expected androidPlayMp3(androidContext, mp3); ^ /root/JavaX-Caches/tmp_1096406631/main.java:126: error: class, interface, or enum expected androidMuteAudio(androidContext); ^ /root/JavaX-Caches/tmp_1096406631/main.java:127: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1096406631/main.java:135: error: class, interface, or enum expected if (match3("wie ist deutschland", s)) ^ /root/JavaX-Caches/tmp_1096406631/main.java:138: error: class, interface, or enum expected if (match3("wie ist \u00f6sterreich", s)) ^ /root/JavaX-Caches/tmp_1096406631/main.java:141: error: class, interface, or enum expected if (match3("du bist lustig", s)) ^ /root/JavaX-Caches/tmp_1096406631/main.java:144: error: class, interface, or enum expected return s; ^ /root/JavaX-Caches/tmp_1096406631/main.java:145: error: class, interface, or enum expected } ^ 38 errors