java.lang.NoClassDefFoundError: SubclassInSame (wrong name: package1/SubclassInSamePackage)


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.

  • importing packages in a class
    via by nirjari patel,
  • Using ANT in Java to extract files
    via Stack Overflow by TNO
  • String Encryption with JASYPT - Java
    via Stack Overflow by Tian
  • JOGL Chart compilation error
    via Stack Overflow by Reshi
  • JSONObject etc instantiation crashing
    via Stack Overflow by Hugo
    • java.lang.NoClassDefFoundError: SubclassInSame (wrong name: package1/SubclassInSamePackage) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(Unknown Source) at java.lang.ClassLoader.defineClass(Unknown Source) at Source) at Source) at$000(Unknown Source) at$ Source) at Method) at Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source)

    Users with the same issue

    Unknown visitor1 times, last one,
    junior_cEngineer1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    andyglick2 times, last one,
    164 more bugmates