java.lang.ClassFormatError: com/mysql/jdbc/Driver (Bad magic number)

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

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Oracle Community by 843810, 1 year ago
via Google Groups by Lobo Bravo, 2 years ago
via Google Groups by Steve Slatcher, 2 years ago
org/xml/sax/SAXException (Bad magic number)
via Oracle Community by 843807, 1 year ago
MyFirstApplet (Bad magic number)
via Oracle Community by 843842, 1 year ago
com/marimba/test/NotHelloWorldApplet (Bad magic number)
via Oracle Community by 75980, 11 months ago
ExampleDuke (Bad magic number)
java.lang.ClassFormatError: com/mysql/jdbc/Driver (Bad magic number)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at undefined.Chatroom.init(Chatroom.java:24)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Users with the same issue

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.