-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dennis,
On 7/5/2010 3:35 AM, dennis ch wrote: > modelJNI.java > =========== > public final static native void initModel(); > > native code > ========= > #include <HEC.h> > #include <vector> > #include <string> [snip] > void initModel() { You can't use JNI like that. You have to use the 'javah' header-fine generator and then write your native code to that specification. For a class called "JNITest" and a method called doSomething that takes no arguments, the method signature needs to be: JNIEXPORT void JNICALL Java_JNITest_doSomething (JNIEnv *, jclass); You might want to read-up on using JNI: it's not as simple at the IJW stuff C# provides. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwzZmQACgkQ9CaO5/Lv0PDqIQCfUHTmhYzd+iMN6z2ZS3F27z2p WGgAni70v3qoAt66x+TuD0JUkRiFXeRZ =Srci -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org