log4j2 Leave a reply Eclipse put log4j2.xml on classpath. Open Run Configurations -> Arguments -> VM Arguments and enter: -Dlog4j.configurationFile=log4j2.xml