webview_java icon indicating copy to clipboard operation
webview_java copied to clipboard

Swing Example crashes on Mac ARM.

Open tanin47 opened this issue 1 month ago • 0 comments

I tried to run: /Users/tanin/.sdkman/candidates/java/23.1.8.r21-nik/bin/java -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath [someclasspath] dev.webview.webview_java.example.swing.SwingExample

It crashed and didn't give out a lot of info:

Hello // I add System.out.println(..) at the beginning of main.
zsh: trace trap  /Users/tanin/.sdkman/candidates/java/23.1.8.r21-nik/bin/java    -classpath

If I add -XstartOnFirstThread, then it hangs.

The error when performing: frame.getContentPane().add(component, BorderLayout.CENTER);.

I wonder if there's a way to debug more and/or how to fix this.

Thank you!

tanin47 avatar Nov 19 '25 23:11 tanin47