Compile JNI with autotools?
Tom Tromey
tromey@redhat.com
Mon Sep 11 15:14:00 GMT 2006
>>>>> ">" == W Michael Petullo <mike@flyn.org> writes:
>> I am trying to compile some JNI code using the GNU autotools.
>> Could anyone recommend a simple example Makefile.am?
I don't know of one offhand, but I'd imagine there is one kicking
around out there somewhere :)
>> ./.libs/libnewfmt_ptrnjava.so: undefined reference to `hidden alias for void FmtPtrn::helloWorld()'
This means you forgot to pass '-fjni' to gcj when you compiled the
objects in libnewfmt_ptrnjava.so.
>> # JNI Java Code:
>> libnewfmt_ptrnjava_la_SOURCES = FmtPtrn.java
Try
libnewfmt_ptrnjava_la_GCJFLAGS = -fjni
Tom
More information about the Java
mailing list