Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » "code too large" limit: Eclipse vs. JDK
"code too large" limit: Eclipse vs. JDK [message #113338] Mon, 03 November 2003 18:12 Go to next message
Eclipse UserFriend
Originally posted by: jlm_one.yahoo.com

We have some monster auto-generated methods that, when saved in Eclipse and
jar'ed-up using Ant in Eclipse, work just fine. But, if I compile the
source manually (using Ant) at the command line with JDK 1.4.2_02, I get
"code too large" errors, presumably due to the 64K bytecode limit.
Interestingly, JDK 1.4.0 will compile the code, but I get the 64K limit
error trying to run it.

What is Eclipse doing differently? I can understand Eclipse failing to
recognize the error, since some JDKs seem to ignore it, but it's a mystery
how the code executes. Does anyone know Eclipse's trick, and if so, if I
can use the same trick when I compile using javac?

Thanks!

-- Joe
Re: "code too large" limit: Eclipse vs. JDK [message #113897 is a reply to message #113338] Wed, 05 November 2003 05:00 Go to previous message
Eclipse UserFriend
Eclipse compiler is checking the bytecode size limit, don't worry. I presume
we are producing more compact code than the JDK compiler.
You must be close to the 64K limit with Eclipse, and slightly over with
Javac...

"JLM" <jlm_one@yahoo.com> wrote in message news:bo6nbc$ga1$1@eclipse.org...
> We have some monster auto-generated methods that, when saved in Eclipse
and
> jar'ed-up using Ant in Eclipse, work just fine. But, if I compile the
> source manually (using Ant) at the command line with JDK 1.4.2_02, I get
> "code too large" errors, presumably due to the 64K bytecode limit.
> Interestingly, JDK 1.4.0 will compile the code, but I get the 64K limit
> error trying to run it.
>
> What is Eclipse doing differently? I can understand Eclipse failing to
> recognize the error, since some JDKs seem to ignore it, but it's a mystery
> how the code executes. Does anyone know Eclipse's trick, and if so, if I
> can use the same trick when I compile using javac?
>
> Thanks!
>
> -- Joe
>
>
Previous Topic:???: The field XXX cannot be declared static; static fields can only be declared in static or top le
Next Topic:open a java file in windows into eclipse
Goto Forum:
  


Current Time: Sun Jul 27 18:15:01 EDT 2025

Powered by FUDForum. Page generated in 0.03858 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top