RE: [Java-gnome-developer] jni question
Brought to you by:
afcowie
From: Jeffrey M. <Jef...@Br...> - 2002-03-29 18:26:16
|
The JDK version of jni.h will work. You will find it under <jdk-dir>/include or under <jdk-dir>/include/linux on some JDK and it will work with GCJ. JNI is a C API (not sure why the GCJ version has it assumes C++. GCJ uses CNI=20 by default but has the ability to use CNI in=20 version 3.0 and higher. CNI is much cleaner and simpler to use but it will only work with GCJ. You will not be able to use it with other JREs. If you want to write the native parts of your application using JNI it should be fairly seemless to GCJ. > -----Original Message----- > From: S=F8ren [mailto:bi...@ma...] > Sent: Friday, March 29, 2002 1:09 PM > To: jav...@li... > Subject: [Java-gnome-developer] jni question >=20 >=20 > Any java-gnome developers who know if its possible to > do the jni native part of gcj apps in c, not c++? > It appears the gcjh only produces c++ headers, and jni.h for > gcc 3.0.3 also assumes c++. The jni.h that comes with the > sun jdk looks like a c version, but I cant find any implementation > for that header, and I doubt it would work with gcj if there > is such an implementation?? >=20 > S=F8ren >=20 >=20 >=20 >=20 > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer >=20 |