I need to set up log4j so that I can run a java Driver class (with main method) from command prompt with java command.
In order to do so, I need to first set Log4J. To do so, I ran the command as
D:\java\bin>java -Dlog4j.configurationFile=file:"D:\log4j.properties" - jar D:\tomcat\webapps\WEB-INF\lib\log4j-1.2.17.jar
But I get an error as: no main manifest attribute, in D:\tomcat\webapps\WEB-INF\lib\l og4j-1.2.17.jar
What am I doing wrong?