java.lang.NoClassDefFoundError: Mainprogram (wrong name: drugstore/Mainprogram)

Coderanch | Anand Shrivastava | 9 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    classpath trouble

    Coderanch | 9 years ago | Anand Shrivastava
    java.lang.NoClassDefFoundError: Mainprogram (wrong name: drugstore/Mainprogram)
  2. 0

    Yet another Java classpath problem

    Stack Overflow | 7 years ago | pypmannetjies
    java.lang.NoClassDefFoundError: Main (wrong name: pro ject2/Main)
  3. 0

    Problems in running a modified Java code

    Stack Overflow | 5 years ago | user1200825
    java.lang.NoClassDefFoundError: TanaModel (wrong name: models/TanaModel)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    3 ways to solve java.lang.NoClassDefFoundError in Java J2EE

    blogspot.com | 5 months ago
    java.lang.NoClassDefFoundError: com\MainApp (wrong name: com/MainApp)
  6. 0

    How to Send SMS using Java Program (full code sample included)

    java-samples.com | 9 months ago
    java.lang.NoClassDefFoundError: SEnder (wrong name: Sender)

    1 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

      Mainprogram (wrong name: drugstore/Mainprogram)

      at java.lang.ClassLoader.defineClass1()
    2. Java RT
      ClassLoader.loadClassInternal
      1. java.lang.ClassLoader.defineClass1(Native Method)
      2. java.lang.ClassLoader.defineClass(ClassLoader.java:620)
      3. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
      4. java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
      5. java.net.URLClassLoader.access$000(URLClassLoader.java:56)
      6. java.net.URLClassLoader$1.run(URLClassLoader.java:195)
      7. java.security.AccessController.doPrivileged(Native Method)
      8. java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      9. java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      10. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
      11. java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      12. java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      12 frames