It has to be on the classpath. I usually have a subfolder called 'conf' which holds any .properties files needed by my software. So if I'm running my app in the folder above, then I'd put conf/log4j.properties onto the classpath when invoking the app.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.