Thread: Configuring directory paths netbeans

  1. #1
    Dr Dipshi++ mike_g's Avatar
    Join Date
    Oct 2006
    On me hyperplane

    Configuring directory paths netbeans

    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:
    #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 >_<
    Last edited by mike_g; 08-18-2008 at 04:14 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. from dev-c++ mingw to netbeans cygwin
    By yahn in forum C++ Programming
    Replies: 10
    Last Post: 01-14-2009, 08:18 AM
  2. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 09:38 AM
  3. Couple errors please help :-D
    By JJJIrish05 in forum C Programming
    Replies: 9
    Last Post: 03-06-2008, 02:54 AM
  4. Replies: 6
    Last Post: 07-30-2003, 03:08 AM
  5. Directory reading trouble
    By samGwilliam in forum Linux Programming
    Replies: 0
    Last Post: 03-10-2002, 09:43 AM