log4j ERROR setFile method xxx.log error system can not find the path specified

log4j: Error setFile error method, the system can not find the path specified

1- phenomenon:

log4j: ERROR setFile (null, true) call failed; xxx.log (system can not find the path specified)

2- reasons:

Because I will eclipse compression decompression tool to the C disk, access to the project root directory is C: //, and because no authority can not be in the root directory of C to create a directory or file, log records

3- Solution:

  • Method One: Do not unzip the eclipse tool to the C drive
  • Method two: Run as administrator eclipse.exe
    Run as administrator.

Guess you like

Origin blog.csdn.net/zbr0819/article/details/93721649