It is step 4) create a C program eg. HelloWorld.java (it should be HelloWorld.c). You're not doing that.
Type: Posts; User: Fubarable
It is step 4) create a C program eg. HelloWorld.java (it should be HelloWorld.c). You're not doing that.
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.
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...
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...
That looks better, and looks to be in agreement with your c code. Does it work now?
Your method parameters are not matching. You need to show your JavaArray.h file, methinks.
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...