Skip to content

FYI: Running with JAVA 17 or higher and mitigating module not exported to unamed module #54

@chris-day

Description

@chris-day

There is a slight nuance with JAVA version above 16 and module exporting, you see the error when starting as

cannot access class com.sun.java.swing.plaf.windows.WindowsLookAndFeel (in module java.desktop) because module java.desktop does not export com.sun.java.swing.plaf.windows

To mitigate, add the following to the run.bat java command line

--add-exports java.desktop/com.sun.java.swing.plaf.windows=ALL-UNNAMED

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