I am trying to run a jar with the log4j.xml file on the file system outside the jar like so:
java -jar MyJarName.jar -cp=/opt/companyName/pathToJar/ log4j.co
this works:
java -jar -Dlog4j.configuration="file:d:\log4j.xml" myjar.jar