This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
GCJ 3.3.1 and JNI working under Cygwin?
- From: Martin Egholm Nielsen <martin at egholm-nielsen dot dk>
- To: java at gcc dot gnu dot org
- Date: Mon, 14 Jun 2004 11:40:32 +0200
- Subject: GCJ 3.3.1 and JNI working under Cygwin?
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