« Return to Thread: Trouble compiling swt.jar

Re: Trouble compiling swt.jar

by Ryan-18 :: Rate this Message:

Reply to Author | View in Thread

Nivox wrote:

>Once upon a time Ryan wrote:
>  
>
>>I'm trying to compile swt.jar to swt.o so that I can make a native
>>Windows executable from Java source that uses SWT (3.1.1) as the
>>windowing toolkit.  When I try:
>>gcj -c swt.jar
>>I get several verification errors:
>>    
>>
>I've had the same problem. Try to compile this way:
>  
>
>gcj -c -fjni -findirect-dispatch swt.jar
>
>  
>

Thanks for the replies folks, the indirect-dispatch method seems to work
fine.  I had been avoiding it becuase I thought it required database
file generation and all that, but I guess that's not the case.  Not sure
why it solves the problem, but good enough for me!

 « Return to Thread: Trouble compiling swt.jar