This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Compiling jar file using gcj
- From: Andrew Haley <aph at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Swapnil Jain <swapnil at pisces dot net dot in>, java at gcc dot gnu dot org
- Date: Tue, 01 Sep 2009 17:05:11 +0100
- Subject: Re: Compiling jar file using gcj
- References: <5872C486-D36C-4D9D-BB9A-3EB13639CCD4@pisces.net.in> <4A9943CF.9050302@redhat.com> <2DEA1F47-3C0F-4FA4-AACB-AF5CC63413FE@pisces.net.in> <4A9BA957.1080604@redhat.com> <4CA58F47-3BC3-4750-AC1D-6044CA5B0B9C@pisces.net.in> <4A9BB290.7050708@redhat.com> <709FC717-1B5D-426B-B6E9-AC67CCEFC7EA@pisces.net.in> <4A9CEA4A.3020502@redhat.com> <D0BA90AE-76CD-45F8-8E81-FD65D1E50B87@pisces.net.in> <4A9CF346.8010501@redhat.com> <m3bpluwtxk.fsf@fleche.redhat.com>
Tom Tromey wrote:
>>>>>> "Andrew" == Andrew Haley <aph@redhat.com> writes:
>
>>>> gcj --main=iremote.controller.Controller -o native.o RXTXcomm.o iRemote.o
>
> Andrew> I'll say again
> Andrew> "a chunk of native code seems to be missing"
> Andrew> The RXTXcomm package contains native code. You have to link it to your
> Andrew> main program.
>
> He probably wants -fjni in the compile commands.
Maybe. I've never seen the native code, so I don't know if it's JNI
or CNI.
Andrew.