Search:

Type: Posts; User: Fubarable

Search: Search took 0.08 seconds.

  1. Re: How to call a C sort function to sort a Java Array.

    It is step 4) create a C program eg. HelloWorld.java (it should be HelloWorld.c). You're not doing that.
  2. Re: How to call a C sort function to sort a Java Array.

    No, you've got to create the bridge C class. That's where all the work of JNI occurs. Again, read a detailed tutorial on this and you'll see.
  3. Re: How to call a C sort function to sort a Java Array.

    Where's the .c file that you create that implements the function that is mapped out in the .h file? That's what I'm calling the "bridge" file. I'm not sure what the actual name is, but its name...
  4. Re: How to call a C sort function to sort a Java Array.

    No, don't edit the .h file. Your .c file's method signature must match that of the .h file, and then call the c library's method using the parameters that have been passed in to it by Java. You...
  5. Re: How to call a C sort function to sort a Java Array.

    That looks better, and looks to be in agreement with your c code. Does it work now?
  6. Re: How to call a C sort function to sort a Java Array.

    Your method parameters are not matching. You need to show your JavaArray.h file, methinks.
  7. Re: How to call a C sort function to sort a Java Array.

    This sort of looks like taking a medical student in his first week of medical school and asking him to read a manual on and then perform neurosurgery. Don't you need to know how to walk or even crawl...
Results 1 to 7 of 7