John Meagher John Meagher - 1 year ago 52
Java Question

Why am I getting a NoClassDefFoundError in Java?

I am getting a

when I run my Java application. What is typically the cause of this?

Answer Source

This is caused when there is a class file that your code depends on and it is present at compile time but not found at runtime. Look for differences in your build time and runtime classpaths.