java.lang.NoClassDefFoundError: Test (wrong name: pkg /Test)

Coderanch | Varun Prasad | 4 years ago
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Execution error

    Coderanch | 4 years ago | Varun Prasad
    java.lang.NoClassDefFoundError: Test (wrong name: pkg /Test)
  2. 0

    How to make Eclipse include third party libraries

    Stack Overflow | 3 years ago | Gurgle528
    java.lang.NoClassDefFoundError: gSportsParser (wrong name: gSportsParser/gSportsParser)
  3. 0

    What is wrong with my code?Exception in thread "main" java.lang.NoClassDefFoundError: song (wrong name: Song)

    Stack Overflow | 4 years ago | user2918039
    java.lang.NoClassDefFoundError: song (wrong name: Song)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Program runs in Eclipse, doesn't run at command line

    Stack Overflow | 3 years ago | user2940619
    java.lang.NoClassDefFoundError: Assignment02Q01Sec01 (wrong name: hw/Assignment02Q01Sec01)
  6. 0

    How to run a .class file that is part of a package from cmd?

    Stack Overflow | 4 years ago
    java.lang.NoClassDefFoundError: HelloWorld (wrong nam e: com/HelloWorld)

  1. Nikolay Rybak 2 times, last 2 weeks ago
  2. mauritius 1 times, last 4 months ago
  3. r1chjames 2 times, last 4 months ago
  4. Kialandei 3 times, last 5 months ago
  5. Cafecanudo 7 times, last 9 months ago
82 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NoClassDefFoundError

    Test (wrong name: pkg /Test)

    at java.lang.ClassLoader.defineClass1()
  2. Java RT
    1. java.lang.ClassLoader.defineClass1(Native Method)
    2. java.lang.ClassLoader.defineClass(Unknown Source)
    3. Source)
    4. Source)
    5.$100(Unknown Source)
    6.$ Source)
    7.$ Source)
    8. Method)
    9. Source)
    10. java.lang.ClassLoader.loadClass(Unknown Source)
    11. sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    12. java.lang.ClassLoader.loadClass(Unknown Source)
    13. sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
    13 frames