So on loading in a command line you can do this :
java mymain /home/yoke/props/log4j.properties
And in the mymain main method, just process the arguments to get the string you want.
Tan Yoke Yew wrote:
--error-- log4j:WARN No appenders could be found for logger (com.infopro.util.ptr.FormDocument). log4j:WARN Please initialize the log4j system properly. --end --
i am having these error when i run my java application. i am using Eclipse IDE to run it.
however, i create a simple single hello java application and it doens't return me any error.
as i suppected, i think my PropertyConfigure didnt specify correctly. therefore, instead of put the PropertyConfigurator.configure(config) in my java application, i wish to put it externally (like in my VM ARGUMENT).
may i know how to set there?
Regards; yoke yew
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]