Skip to content

LDAP error with JDK 17, JDK 18 #47

@kasemir

Description

@kasemir

Channelfinder compiles with JDK 18, but at startup it then fails with this type of error:

IllegalAccessError: class org.springframework.ldap.core.support.AbstractContextSource (in unnamed module ...

Workaround seems to be this:
java --add-exports java.naming/com.sun.jndi.ldap=ALL-UNNAMED -jar target/ChannelFinder-4.0.0.jar

Metadata

Metadata

Assignees

No one assigned

    Labels

    faqA frequent question or useful note

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions