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: Confused about jar/lib usage


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


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