This is done in two parts : first , when the Java class using the native method is loaded , it needs to ask the JVM to load the shared library backing it via the Runtime . loadLibrary () call .
这项工作可以分为两部分来完成:首先,当Java类函数的本地方法被程序加载时,需要询问Java虚拟机是否通过Runtime.loadLibrary()操作来请求加载共享库函数。