GCJ 3.3.1 and JNI working under Cygwin?

Martin Egholm Nielsen martin@egholm-nielsen.dk
Tue Jun 15 10:05:00 GMT 2004


Hi,

>> For the first command I get:
>> $ gcc -I/cygdrive/c/j2sdk1.4.2/include/ 
>> -I/cygdrive/c/j2sdk1.4.2/include/win32/ -I. -c JNITest.c
>> In file included from /cygdrive/c/j2sdk1.4.2/include/jni.h:27,
>>                  from JNITest.c:8:
>> /cygdrive/c/j2sdk1.4.2/include/win32/jni_md.h:16: error: syntax error 
>> before "jlong"
>> /cygdrive/c/j2sdk1.4.2/include/win32/jni_md.h:16: warning: data 
>> definition has no type or storage class
> It seems that you don't have __int64 type defined.
>  From win32.h (cygwin system include files) you have:
> #  ifndef __int64        /* some versions seem to #define it already */
> #    define __int64 long long
> #  endif
> Try to put that definition before #include <jni.h>
Well, now it compiles, yes. But I still cannot execute the 
JNI-application (UnsatisfiedLinkError)...

My gcj is:
gcj (GCC) 3.3.1 (cygming special)

maybe that's it?!

// Martin




More information about the Java mailing list