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: Binary size of statically linked java application


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



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