java.lang.NoClassDefFoundError: gui/MainClass Caused by: java.lang.ClassNotFoundException: gui.MainClass

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 buntha Choudhary, 1 year ago
gui/MainClass Caused by: java.lang.ClassNotFoundException: gui.MainClass
via Oracle Community by 843802, 1 year ago
CaptureDeviceFinder Caused by: java.lang.ClassNotFoundException: CaptureDeviceFinder
via Oracle Community by 843834, 1 year ago
msgshow Caused by: java.lang.ClassNotFoundException: msgshow
via Oracle Community by 843798, 1 year ago
customize_search/File ChooserDemo Caused by: java.lang.ClassNotFoundException: customize_search.FileChooserDemo
via Oracle Community by 843798, 1 year ago
SimpleTableDemo/java Caused by: java.lang.ClassNotFoundException: SimpleTableDemo.java
via Oracle Community by 843798, 1 year ago
MyFirstApp/class Caused by: java.lang.ClassNotFoundException: MyFirstApp.class
java.lang.NoClassDefFoundError: gui/MainClass Caused by: java.lang.ClassNotFoundException: gui.MainClass
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)

Users with the same issue

2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
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.