I have a working sample program on how to use DLL in java with JNI. I use to be properly implemented:

/* Test.java */
public class Test {
/*Load the dll that exports functions callable from...