Hi!,

    Local variables are storeed as a part of the stack
frame in the portion of the stack which is being used
by the current method. The way the JVM implemented
local variables is that they are stored as an array in
the stack frame with each slot in the stack frame
taking upto a limit of 32 bits. And the array index
can go until a max of 16 bit index. So the local
variable limit comes to 64 KB.
   So I am not sure whether u can change this limit to
a much bigger size. It is a JVM implementation issue.
Only thing I guess u have to do is to reduce the
number of local variable declaration in your method.
Hope it makes sense.
-sanjeev
--- ravi kakani <[EMAIL PROTECTED]> wrote:
> Hi,
>     Sorry to ask this question in this forum.
>
>     When I am running a java program I am getting an
> error as below.I am using a tool to generate a java
> file,so I don't have control on the java file method
> to break it up into smaller size.My question is,Is
> there a way to specify to the java program or to set
> any parameter so that it takes more than 64k?
>
> Exception in thread "main"
> java.lang.ClassFormatError:
> com/testing/test (Code of a method longer than 65535
> bytes)
>         at java.lang.ClassLoader.defineClass0(Native
> Method)
>         at
>
java.lang.ClassLoader.defineClass(ClassLoader.java:486)
>         at
>
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
>         at
>
java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
>         at
>
java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>         at
>
java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>         at
> java.security.AccessController.doPrivileged(Native
> Method)
>         at
>
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>         at
>
java.lang.ClassLoader.loadClass(ClassLoader.java:297)
>         at
>
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
>         at
>
java.lang.ClassLoader.loadClass(ClassLoader.java:253)
>         at
>
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
>
>
>
> Thanks for the help in advance.
>
> Regards,
> Ravi
>
>
> __________________________________________________
> Do You Yahoo!?
> Check out Yahoo! Shopping and Yahoo! Auctions for
> all of
> your unique holiday gifts! Buy at
> http://shopping.yahoo.com
> or bid at http://auctions.yahoo.com
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED]
> and include in the body
> of the message "signoff EJB-INTEREST".  For general
> help, send email to
> [EMAIL PROTECTED] and include in the body of the
> message "help".
>


__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to