Running Java 9 module using Log4j2 2.10.0

后端 未结 1 380
故里飘歌
故里飘歌 2021-02-06 07:22

I am trying to run a Java 9 module I\'ve created which uses Log4j2 2.10.0.

The problem I\'m running into is that I get a

java.lang.NoClassDefFoundError         


        
1条回答
  •  时光说笑
    2021-02-06 08:01

    Log4j has an issue there which is reported at https://issues.apache.org/jira/browse/LOG4J2-2129.
    Either use 2.9, or use 2.10 with the workaround I provided in that ticket or use 2.11 which was released a couple of days ago and fixes the issue.

    0 讨论(0)
提交回复
热议问题