This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Getting started with merged GCJ


Tom Tromey wrote:
Oops... I think I forgot to CC the list on the first try.

"Jim" == Jim Mayer <jim@pentastich.org> writes:

Jim> Caused by: java.lang.ClassNotFoundException: Jim> org.objectweb.asm.ClassVisitor not found in

Jim> I made the "tools.zip" by running:
Jim>     zip -r /opt/gcc-bootstrap/lib/tools.zip gnu
Jim> from the "trunk/libjava/tools/classes" directory.

You also need the classes from trunk/libjava/tools/asm/

Jim> I was happy to see my little "Generic World" program run, though I was a
Jim> bit shocked at the 41 megabytes (using -static-libgcj, 13 megabytes
Jim> stripped) executable file:

Yeah, -static-libgcj can really hurt.

13M ... I don't know whether that is the expected size or not.  I
basically never make or look at static executables.

That sounds about right. You don't say if that is the stripped size, but it is very large even stripped. If you make a few changes to libgcj, the size can be drastically reduced. There is a ton of stuff dragged in by URLClassLoader for example.


David Daney


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]