Binary size of statically linked java application
Marco Trudel
mtrudel@gmx.ch
Thu Nov 30 11:31:00 GMT 2006
>> Why do I get "multiple definitions of ..." errors when excluding the
> GUI
>> or JCE?
>> That means that your code is using and thus pulling AWT/Swing or JCE
>> into the binary. You have to either uncheck the "exclude GUI/JCE" box
> or
>> change/delete your classes that need the libraries.
>>>> [Lehner, Michael]
> Hm, there are only two things which could do that, I am only printing to
> the console and using the CNI to call a C++ function. But I am not sure
> if this could cause these faults.
It might also be that you use another version of GCJ with classes with
different depencies. That's the reason why you should build these stubs
yourself.
You can create the map to see what pulls the JCE stuff in or remove the
JCE objects from libgcj.a. Then you'll see at compile time what's
pulling it in...
Marco
More information about the Java
mailing list