The Mono Beta 1 was released today and I've prepared a new snapshot that works with this version to test interoperability.
What's new?
Linux Lamer
Since I'm a Linux Lamer (tm), I'm documenting the steps here to get JNI to work with Mono (primarily for my own use).
class test { public static void main(String[] args) { System.loadLibrary("test"); nativeMethod(); } static native void nativeMethod(); }
#include <stdio.h> #include <jni.h> JNIEXPORT void JNICALL Java_test_nativeMethod( JNIEnv* env, jclass clazz) { printf("Hello from JNI\n"); }
New snapshots: just the binaries and source plus binaries.
The GNU Classpath release that this is based on can be downloaded from ftp://ftp.gnu.org/pub/gnu/classpath/classpath-0.09.tar.gz
Note that anon cvs for SourceForge is apparently still lagging behind, so at the moment I'm posting this, anon cvs does not yet contain the latest changes.
Powered by: newtelligence dasBlog 2.3.12105.0
© Copyright 2021, Jeroen Frijters
E-mail