java.lang.ClassFormatError: Extra bytes at end of class file
        Posted  
        
            by CheesePls
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by CheesePls
        
        
        
        Published on 2010-06-15T13:11:56Z
        Indexed on 
            2010/06/15
            13:12 UTC
        
        
        Read the original article
        Hit count: 1058
        
I'm getting an odd error when I try and run this program. The class compiles fine into multiple .class files and I compiled it last week (before editing it) just fine. But now, I see this:
Exception in thread "main" java.lang.ClassFormatError: Extra bytes at the end of class file blah/hooplah/fubar/nonsense/IndexId$Transaction
From what I've looked up, Java 6 build 1.5 could fix it since it allows extra bytes at the end of class files (I think), but I would much rather use build 1.6.
Any clear ideas on how this happened or how to fix it?
© Stack Overflow or respective owner