Wrote /root/JavaX-Caches/tmp_1350113353/main.java - 645 bytes (written=645, should be 645)
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_1266500496 /root/JavaX-Caches/tmp_1350113353/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_1350113353/main.java:1: error: class, interface, or enum expected
!752
^
/root/JavaX-Caches/tmp_1350113353/main.java:9: error: class, interface, or enum expected
JComponent panel = withTitle("Enter a password:", pass);
^
/root/JavaX-Caches/tmp_1350113353/main.java:11: error: class, interface, or enum expected
S title = "Give password";
^
/root/JavaX-Caches/tmp_1350113353/main.java:13: error: class, interface, or enum expected
String[] options = {"OK", "Cancel"};
^
/root/JavaX-Caches/tmp_1350113353/main.java:14: error: class, interface, or enum expected
int option = JOptionPane.showOptionDialog(null, panel, title,
^
/root/JavaX-Caches/tmp_1350113353/main.java:18: error: class, interface, or enum expected
print("Option: " + option);
^
/root/JavaX-Caches/tmp_1350113353/main.java:19: error: class, interface, or enum expected
if (option == 0) { // OK
^
/root/JavaX-Caches/tmp_1350113353/main.java:21: error: class, interface, or enum expected
print("Your password is: " + new String(password));
^
/root/JavaX-Caches/tmp_1350113353/main.java:22: error: class, interface, or enum expected
}
^
9 errors