"code too large" compilation error in java

Posted by trinity on Stack Overflow See other posts from Stack Overflow or by trinity
Published on 2010-03-09T09:33:16Z Indexed on 2010/03/09 9:36 UTC
Read the original article Hit count: 492

Hello all,

Is there any maximum size for code in java.. i wrote a function with more than 10,000 lines. Actually , each line assigns a value to an array variable..

        arts_bag[10792]="newyorkartworld";
        arts_bag[10793]="leningradschool";
        arts_bag[10794]="mailart";
        arts_bag[10795]="artspan";
        arts_bag[10796]="watercolor";
        arts_bag[10797]="sculptures";
        arts_bag[10798]="stonesculpture";  

And while compiling , i get this error : code too large

How do i overcome this ?

© Stack Overflow or respective owner

Related posts about java

Related posts about compilation-errors