java.lang.NoClassDefFoundError: Test (wrong name: com/foo/bar/Test)

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

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

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Java Mahout Class TermVectorMapper not found
    via Stack Overflow by Umingo
    ,
  • Eclipse JDT class ASTVisitor not found
    via Stack Overflow by swahnee
    ,
    • java.lang.NoClassDefFoundError: Test (wrong name: com/foo/bar/Test) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:800)

    Users with the same issue

    Ghosts
    Ghosts12 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    davidvanlaatum
    davidvanlaatum1 times, last one,
    DannyDBag
    DannyDBag12 times, last one,
    139 more bugmates