Here is the best and simple tutorial for you

Java native interface step by step solution

You will also find how to configure visual studio for jni project