I am entering into Java world just now. I am facing problem when I try to compile sample program for Calling C from Java.
I wanted to try the sample code for JNI (W
Ensure that your native library is really loaded by adding a try/catch block around the System.loadLibrary() call to catch the UnsatifiedLinkError Exception if your library could not be found.
If that doesn't work post your error, "it return aborted" isn't very helpful.
Also, you defined the native print method with a void return type, yet you have a return statement. Either remove that or let the method actually return something.