HiveBrain v1.2.0
Get Started
← Back to all entries
patternjavaCritical

Why am I getting a NoClassDefFoundError in Java?

Submitted by: @import:stackoverflow-api··
0
Viewed 0 times
noclassdeffounderrorwhygettingjava

Problem

I am getting a NoClassDefFoundError when I run my Java application. What is typically the cause of this?

Solution

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.

Context

Stack Overflow Q#34413, score: 315

Revisions (0)

No revisions yet.