Confused about jar/lib usage

Michael Koch konqueror@gmx.de
Tue Feb 3 21:52:00 GMT 2004


On Tue, Feb 03, 2004 at 01:26:10PM -0800, Fx Mx wrote:
> I'm not actually interested in compiling libgcj.jar,
> I'm interested in compiling another jar file. But
> thought that libgcj.jar should work if any... so that
> I could use this example to make sure I understood how
> it worked.

I compiled today gnujaxp.jar and used it in another app like this:

gcj -c gnujaxp.jar   (this produces gnujaxp.o)
gcj -c Test.java     (this produces Test.o)
gcj -o test --main=Test Test.o gnujaxp.o

Producing *.so directly is IMO not possible *.so files are several *.o
files bundled together with ar.


Michael



More information about the Java mailing list