Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • If Java doesn't need it - why do we get the "Bad magic number" error when a .class file is not really a class? Commented Apr 27, 2011 at 3:59
  • 1
    @RonK: It is an additional sanity check. Every java compiler puts the correct magic number in front of the class file, if it is missing, there is something wrong. A little bit like a checksum if you want, although I don't really like this comparison. Commented Apr 27, 2011 at 10:35