java.lang.NoClassDefFoundError: Test (wrong name: a/b/Test)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Expert tip

Look if your classpath is correct, and check if the versions of your libraries match the version you described in your pom.xml

Solutions on the web

via Coderanch by Abhay Agarwal, 1 year ago
Test (wrong name: a/b/Test)
via Stack Overflow by user1977050
, 2 years ago
via Stack Overflow by emanuele
, 2 years ago
via Coderanch by nitude gupta, 1 year ago
Test (wrong name: Java/Te st_java/Test)
java.lang.NoClassDefFoundError: Test (wrong name: a/b/Test)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(
at java.lang.ClassLoader.defineClass(
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(

Users with the same issue

Once, 5 months ago
Once, 6 months ago
12 times, 7 months ago
Once, 1 year ago
14 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.