Search code examples
javac++java-native-interfacejnienv

How the JVM executes JNI


I've been using JNI a bit recently, and I wonder something... How JNI gets executed?

For example, DefineClass is in the JNINativeInterface_, but, it has no code in jni.h. This might be a C++ specific thing, but I don't know a lot about C++/Memory/etc.


Solution

  • Here is the source code of openjdk : click