No log4j2 configuration file found. Using default configuration: logging only errors to the console

前端 未结 15 1149
情深已故
情深已故 2020-12-04 22:59
$ java -Dlog4j.configuration=file:///path/to/your/log4j2.xml -jar /path/to/your/jar_file.jar

Written to the console, you get

ERROR          


        
15条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-04 23:43

    I have solve this problem by configuring the build path. Here are the steps that I followed: In eclipse.

    1. create a folder and save the logj4 file in it.
    2. Write click in the folder created and go to Build path.
    3. Click on Add folder
    4. Choose the folder created.
    5. Click ok and Apply and close.

    Now you should be able to run

提交回复
热议问题