Re: Compiling jar file using gcj

Swapnil Jain <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
bravo,

the -fjni thing worked.

Thanks a log Andrew Haley, Tom Tromey, David Daney and the forum.  
Thanks a lot again.


--------------------------------
Swapnil Jain
Indore
-----------------------------------------------
http://swapnil.pisces.net.in
-----------------------------------------------



On 01-Sep-09, at 9:41 PM, David Daney wrote:

> Andrew Haley wrote:
>> Tom Tromey wrote:
>>>>>>>> "Andrew" == Andrew Haley <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.