|
Java™ by example!
|
|
|
Why do I get the error message Bad Magic Number?
Each class file starts with special 4 bytes equal to the hexadecimal value of 0xCAFEBABE (cool, huh?) - this number identifies the class file format and is humorously named "Magic Number". When you get an error from the JVM saying "Bad Magic Number", it simply means the class file it is trying to load is corrupt (or perhaps the JVM is corrupt). The solution is usually to recompile all your classes.
Further Information
Author of answer: Alexander Maryanovsky.
Comments
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|