Of course, you can mix access to the DLL, since it loads once only anyway. The problem is how the link to your application works:
JNA:
JNA jna, - DLL. , DLL, .
JNI:
Java , DLL. com.company.SomeClass, int doStuff(int i, long john) :
JNIEXPORT jint JNICALL Java_SomeClass_doStuff(JNIEnv *env, jint i, jlong john) {
return ...whatever...
}
, UnsatisfiedLinkException.
:
, DLL, , -, . , javah.
Java 2 - 5: JNI.