At 08:37 AM 3/25/2004 -0500, you wrote:
>Then
>Exception in thread "main" java.lang.NoClassDefFoundError:

If you understand the difference between a NoClassDefFoundError and a
ClassNotFoundException, you'll understand your problem.

Yoav Shapira

The difference between the two, as I understand it, is this..


ClassNotFoundException means that you were trying to dynamically load a class at runtime using something like Class.forName("com.mycompany.MyClass") and the class couldn't be found.

NoClassDefFoundError can be caused by a couple different things:

1. An import in the class being loaded cannot be found

2. The class being loaded which existed at compile time is now not found at runtime.

A third possibility might be that there are multiple versions of log4j being loaded by different classloaders, but I'm not totally confident that I can describe exactly how this results in a NoClassDefFoundError.


If Log4j is actually in this user's classpath, then I would suspect the third case. Yoav, maybe you can explain that third case a bit better for us?


Jake


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to