Skip to content

Swing Example crashes on Mac ARM. #37

@tanin47

Description

@tanin47

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions