Configuring directory paths netbeans

This is a discussion on Configuring directory paths netbeans within the Tech Board forums, part of the Community Boards category; I'm using netbeans with the c/c++ plugin. I'm trying to make a lib using the JNI. My problem is that ...

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

    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:
    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 >_<
    Last edited by mike_g; 08-18-2008 at 05: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, 10: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, 04:08 AM
  5. Directory reading trouble
    By samGwilliam in forum Linux Programming
    Replies: 0
    Last Post: 03-10-2002, 09:43 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21