Static executables
Andrea aime
andrea.aime@aliceposta.it
Tue Jan 31 17:12:00 GMT 2006
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.
Best regards
Andrea Aime
More information about the Java
mailing list