I don't know

A little boy asked his father, "Daddy, how much does it cost to get married?"

Father: "I don't know, I'm still paying for it."


Funny Bone

What time it is when an elephant jumps over your car?

It's time to get a new car.

Chapter 3 Java Native Interface

Explanation

The JNIEnv type is a pointer to a structure storing all JNI function pointers. The env pointer is the first argument of every native method.

The JNI_CreateJavaVM() function loads and initializes a Java VM and fills in a pointer jvm to virtual machine and a pointer env to the execution environment.

The FindClass() method is used to load a class.

The GetStaticMethodID() returns the identifier of a static method in a class.

The CallStaticVoidMethod() calls the main method of the MyFrame class.

The DestroyJavaVM() method unloads a Java virtual machine and reclaims resources.


Contents         Top                              Move to the preceding page Move to the next page
© 2001 www.universalteacher.com. All rights reserved