JNI - C call JAVA

step:

1. Create a virtual machine

2. Obtain class

3. Examples of objects: obtaining constructor (method called "<init>"), configuration parameters, call the method

4. Call the method: is divided into obtaining method, constructor, method invocation

 

Guess you like

Origin www.cnblogs.com/jiangjh/p/10991365.html