java.lang.ClassFormatError: (code of a method longer than 65535 bytes)

Hai,

I am new to java Programming.I undergo a project of "accounting system".i am using Java swing.My file is of size 581 KB.During last few days,i compiled my program and run better.Today i proceeded my work and compile the program.It got compiled without any errors.But during execution,I caught an error as follows;

Exception in thread "main" java.lang.ClassFormatError:(code of a method longer than 65535 bytes).

I referred forum questions but I can't understand anything else.so,kindly advise me for further proceedings.

Please help me at once.

Thanks in advance.

perinbam.

[629 byte] By [princyinbam] at [2007-9-26 7:16:35]
# 1
hi, the error says all: you have written a method that's too long, just try to split it into different methods.regards
swingfreak at 2007-7-1 17:03:46 > top of Java-index,Archived Forums,Java Programming...
# 2
Thanks Swingfreak for your reply.As per your advice I modified my file into a package format and split the codings into the small files.Again during the run time i got the same error . what can i do?Kindly help me
princyinbam at 2007-7-1 17:03:46 > top of Java-index,Archived Forums,Java Programming...
# 3
From the description of what you did, it doesn't sound as if you changed any methods, which is what swingfreak recommended.
DrClap at 2007-7-1 17:03:46 > top of Java-index,Archived Forums,Java Programming...
# 4

Thanks Drclap.At first I done my project in a single file named Bills.During run time i got error Bills(code of the method longer than 65535 bytes).I think it meant the constructor of that file so I modified the same file into a package and splitted the codings into multiple files by shortening of the constructor.Even though i got the same error.What can i do?

regards.

princyinbam at 2007-7-1 17:03:46 > top of Java-index,Archived Forums,Java Programming...