Skip to content

Do not require java.desktop #3904

@jakub-id

Description

@jakub-id

When using log4j2 2.25.0 in a backend vert.x application running on a custom JRE created via jlink it's necessary to include the java.desktop module otherwise the following exception is thrown during log4j initialization:

Exception in thread "main" java.lang.NoClassDefFoundError: java/beans/PropertyChangeEvent

Please consider making dependency on java.beans (part of java.desktop) optional or allow exclusion via maven. java.desktop is the second biggest standard module after java.base and it should not be required to include it in backend applications.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiAffects the public APIinvalid

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions