This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]