The code compiled:
#include <jni.h> // JNI header provided by JDK
#include <iostream> // C standard IO header
#include "HelloJNI.h" // Generated
#include <string>
using namespace std;
// Implementation of the native method sayHello()
JNIEXPORT void JNICALL Java_HelloJNI_sayHello(JNIEnv* env, jobject thisObj)
{
cout << "Narain C A";
}
int main() {
JNIEXPORT void Java_HelloJNI_sayHello();
}
How to find the generated dll file in visual studio?
CodePudding user response: