Compiling jar file using gcj

David Daney
Tue Sep 1 16:12:00 GMT 2009

Andrew Haley wrote:
> Tom Tromey wrote:
>>>>>>> "Andrew" == Andrew Haley <> 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.

IIRC, RXTXcomm is a standard java.comm (sp?) implementation that uses 
JNI and should be portable across all VMs.  I think Tom is correct that 
-fjni will be needed.

David Daney

More information about the Java mailing list