log4j2 java.lang.NoClassDefFoundError: org/apache/logging/log4j/LogManager

前端 未结 2 1263
不思量自难忘°
不思量自难忘° 2021-02-05 23:18

I am using log4j 2.3 in my java application. I added the dependency via maven.
When running the program in eclipse everything work fine, but when I package it with maven and

2条回答
  •  醉梦人生
    2021-02-05 23:51

    Install the latest version of log4j (I have installed log4j-2.3.jar).

    And follow the below steps:

    • Right click project -> Build path -> Libraries -> Add External Jars -> Include Log4j, Log4j core and Log4j api jars.

    It worked for me

提交回复
热议问题