Re: Unable to execute java file which uses log4j through jar file where as the same file getting executed via eclipse.
Monday, November 3, 2008 08:54 AM
If you made an executable jar and are using "java -jar foo.jar" then did you put the classpath entries into the jar file's manifest? (Executable jars only look there for the classpath information.) If however you are just doing "java -cp foo.jar;bar.jar package.Class" then your classpath is simply not setup properly. In just about any case when you ask online, *paste the exact error message* to the forum too. Otherwise we're just guessing, and I don't have a lot of time to waste guessing.