Calling native code from a class defined by JNI during runtime
I am currently working on a project that involves injecting a DLL into a Java process, the code in my DLL makes a jni->DefineClass call to create a new Java class with a few functions, one of these functions calls back to native code.
My Java class looks like this: