Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

"Code too large" error

843810Jun 26 2006 — edited Jul 4 2006
Dear All,

When I'm using one file which is generated by some code generation tool then javac is giving following error:

"code too large".

This code contains definition of 2 dimensional static array. This array is initialized with near about 2700 lines. while I use javac, it gives this error. If I delete some initialization lines then it get compiled.

The .class file generated after compilation is of near about 200KB.

I'm not able to find out, what's the issue.

Please help.

thanks
sushil

Dear All,
I'm using the J2SDK1.4.2_10.

I checked lots of sites, but unable to find out about the limit of number of rows java put for Array initialization.

waiting for reply.

thanks

Message was edited by:
Sushil_Naresh
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 1 2006
Added on Jun 26 2006
2 comments
738 views