GCJ 3.3.1 and JNI working under Cygwin?
Martin Egholm Nielsen
martin@egholm-nielsen.dk
Mon Jun 14 09:40:00 GMT 2004
Hi there,
I'm toying around with JNI under Cygwin at the moment, but I don't seem
to get it to work.
Whatever I do, I get a "java.lang.UnsatisfiedLinkError" thrown.
I've tried the similar actions with my GCJ-crosscompiler and a MinGW
GCJ, as well, and both of these work.
However, both of these are version 3.4, whereas my Cygwin GCJ is version
3.3.1. Is there an issue with that version and JNI?
Here's the list of commands issued:
$ gcj -C JNITest.java
$ gcj -Djava.library.path=. -fjni --main=JNITest -o JNITest.exe
JNITest.class
$ gcjh -jni JNITest
$ gcc -c JNITest.c (Implemented JNITest.h-methods)
$ gcc -o JNITest.dll -shared JNITest.o
Regards,
Martin Egholm
More information about the Java
mailing list