Monday, January 8, 2007 02:21 PM
Not an answer, but an update. I spent an hour tweaking the classpath entries in my wrapper batch file and in the manifest file, with no luck. I went back to my original batch file, and eventually realized that when my batch file invokes my jar using
java -classpath ... my.class
Then log4j worked, but when I used
java -classpath ... -jar my.jar
with the proper manifest, then everything else in my program worked, except log4j. Why should that matter? It seems that when I use the -jar method, log4j just fails, regardless of where I actually put the log4j.properties.
I suppose at this point I should mention that I'm running java version 1.4.2_08 and log4j-1.2.8.