java.lang.NoClassDefFoundError: Test1 (wrong name: orange/Test1)

Coderanch | John Mulholland | 2 years ago
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    This error means there's a class missing in your classpath during runtime. You need to create a jar with all your dependencies and have it in your classpath. Check Maven Assembly Plugin and how to add your dependencies to a jar:
  2. 0

    Adding package name to sourcecode causes problem when compiling/running from command line?

    Coderanch | 2 years ago | John Mulholland
    java.lang.NoClassDefFoundError: Test1 (wrong name: orange/Test1)
  3. 0

    Java Compiling Error:

    Stack Overflow | 2 years ago | Hussein Shehady
    java.lang.NoClassDefFoundError: AtmRun (wrong name: come/example/atm/AtmRun)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Where to install library for Java on Ubuntu command line

    Stack Overflow | 2 years ago | seventy70
    java.lang.NoClassDefFoundError: Tutorial (wrong name: tutorial/java/Tutorial)
  6. 0

    Can't run .class files from CMD

    Stack Overflow | 3 years ago | Leon
    java.lang.NoClassDefFoundError: PhraseOMatic (wrong n ame: chap01/PhraseOMatic)

  1. rsprangemeijer 1 times, last 7 days ago
  2. Nikolay Rybak 2 times, last 1 month ago
  3. mauritius 1 times, last 5 months ago
  4. r1chjames 2 times, last 5 months ago
  5. Kialandei 3 times, last 6 months ago
1 more registered users
85 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

    Test1 (wrong name: orange/Test1)

    at java.lang.ClassLoader.defineClass1()
  2. Java RT
    1. java.lang.ClassLoader.defineClass1(Native Method)
    2. java.lang.ClassLoader.defineClass(
    8. Method)
    10. java.lang.ClassLoader.loadClass(
    11. sun.misc.Launcher$AppClassLoader.loadClass(
    12. java.lang.ClassLoader.loadClass(
    13. sun.launcher.LauncherHelper.checkAndLoadMain(
    13 frames