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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Coderanch by Mark Vedder, 1 year ago
MyClass (wrong name: com/foo/MyClass)
via Oracle Community by 807597, 1 year ago
MyClass (wrong name: com.myco.myapp.MyClass)
via Coderanch by Subha Rangu, 1 year ago
Test (wrong name: com /Test)
via Google Groups by Yohan, 2 years ago
Tiny (wrong name: com/acme/Tiny)
via Oracle Community by 807593, 1 year ago
ApplicationFrame (wrong name: develop/com/vistech/util/ApplicationFrame)
via Oracle Community by 843854, 1 year ago
SqlbaseDriver (wrong name: com/centurasoft/java/sqlbase/SqlbaseDriver)
java.lang.NoClassDefFoundError: MyClass (wrong name: com/foo/MyClass)
at java.lang.ClassLoader.defineClass0(Native Method)

Users with the same issue

Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.