I keep getting a java.lang.UnsatisfiedLinkError error every time I run my program. I have a native, a wrapper, and the program to call the native through the wrapper.<
I think the problem is that your JNI signature doesn't match. That is:
JNIEXPORT void JNICALL native_MessageBox(string text, string title);
should be something like:
JNIEXPORT void JNICALL java_com_example_Wrapper_native_MessageBox(string text, string title);
where, java_com_example should be replaced with your package name (. to be replace with _ in package name).
OR
I would suggest you to generate your native function signature and declaration using javah -jni option available in java.