esuslogo
 [To advertise Java(tm) Events here, contact joris@esus.com!]
banner

Java™
by example!






New @ Esus.com


  gb  In-house search engine for better results!

  gb  Get updates with the esus.com
newsletter!









  Home 
 Browse Categories 
 Ask a Java Question 
 Help 
  For Java Tips & Tricks, subscribe to the esus.com newsletter!
Search Java Q&A, Links, API's:   adv 

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!





Terms of Service | Privacy Policy | Contact

Copyright © 2000-2003 Esus.com - All Rights Reserved 
Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. Esus.com is independent of Sun Microsystems, Inc. All other trademarks are the sole property of their respective owners.