java.lang.NoClassDefFoundError: HelloWorld (wrong name: org/xuwei/HelloWorld)

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

Samebug tips

,
Expert tip

Look if your classpath is correct, and check if the versions of your libraries match the version you described in your pom.xml

Solutions on the web

via JIRA by luoxinwei1, 1 year ago
HelloWorld (wrong name: org/xuwei/HelloWorld)
via JIRA by luoxinwei1, 1 year ago
HelloWorld (wrong name: org/xuwei/HelloWorld)
via Stack Overflow by NateSHolland
, 2 years ago
HelloWorld (wrong name: helloworld/HelloWorld)
via Stack Overflow by woodhead92
, 2 years ago
helloWorld (wrong name: helloworld/helloWorld)
via Stack Overflow by alexplanation
, 2 years ago
MTurkHelloWorld (wrong name: helloworld/MTurkHelloWorld)
java.lang.NoClassDefFoundError: HelloWorld (wrong name: org/xuwei/HelloWorld)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 4 months ago

Write tip

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