I'm using netbeans with the c/c++ plugin. I'm trying to make a lib using the JNI. My problem is that my project cant seem to find the header although I have entered the header directory in th linker using an absolute path. The screenie might give a better picture of what is going on. The directory is correct, but then why cant it find jni.h?
The source is:
Code:
#include <jni.h>
#include <stdio.h>
#include "print.h"
JNIEXPORT void JNICALL Java_helloworld_Main_nativePrint
(JNIEnv *env, jobject obj)
{
printf("\nBlah Blah\n");
}
EDIT: NVM I fixed it; I needed to add the directory to the compiler not libraries >_<