Hello,
I have been trying to get the Java JNI - C DLL sample working using MS Visual C. The c++ file I used could not find the Java.h file on compile.
Has anyone tried this? Can anyone comment about path correctness or steps to complete this?
I have also tried it without the path and it still did not find it.
Thanks
Here is the C++ file********************
#include <jni.h>
#include "C:\jdk1.3.1\JNI\Hello\Hello.h"
#include <stdio.h>
JNIEXPORT void JNICALL
Java_Hello_displayHello(JNIEnv *env, jobject obj)
{
printf("Hello !\n"
;
return;
}
I have been trying to get the Java JNI - C DLL sample working using MS Visual C. The c++ file I used could not find the Java.h file on compile.
Has anyone tried this? Can anyone comment about path correctness or steps to complete this?
I have also tried it without the path and it still did not find it.
Thanks
Here is the C++ file********************
#include <jni.h>
#include "C:\jdk1.3.1\JNI\Hello\Hello.h"
#include <stdio.h>
JNIEXPORT void JNICALL
Java_Hello_displayHello(JNIEnv *env, jobject obj)
{
printf("Hello !\n"
return;
}