Static executables

David Daney ddaney@avtrex.com
Tue Jan 31 19:11:00 GMT 2006


Andrea aime wrote:
> David Daney wrote:
>>> Andrzej Bialecki wrote:
>>>>> Here's the procedure I followed to prepare the library JAR, and the 
>>> JNI part:
>>>>>> # this depends on ncurses, but we're not linking now
>>> gcj -c Toolkit.c -fjni -findirect-dispatch -o Toolkit.o
>>>>>>> As APH said, I don't think -findirect-dispatch should be here. As far 
>> as I know it works only with dynamic loading of gcj compiled .so 
>> files. JNI will probably still work, but I have not tried it.
>>> Doh, this is really bad, since many libraries such as SWT (which uses
> JNI) won't compile without -findirect-dispatch. Arg, I was really hoping
> to find a way to generate small standalone executables for apps with
> a graphical interface, but it seems to be tecnically impossible.
>
Don't take my word for it. You could try it and see what happens. I 
have never done it, so anything I say about it is pure speculation.
Thankfully we have been provided with a tool called gdb. It makes 
finding the root cause of any problems that may occur utter simplicity.
David Daney


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /