Hi Ravi, have a look at the JVM specification, section 4.10
http://java.sun.com/docs/books/vmspec/2nd-edition/html/ClassFile.doc.html#88659 ... yes 65535 seems to be the limit for everything :-( Cheers, Torsten On Mon, 17 Dec 2001 22:04:29 -0800 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!? Get your free @yahoo.com address at http://mail.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".
