home *** CD-ROM | disk | FTP | other *** search
-
- /* HelloWorld.h generated by applying javah
- on the Java class, and contains the
- function declaration for the native method
- */
- #include "HelloWorld.h"
-
- /* used for printf */
- #include "stdio.h"
-
- void Java_HelloWorld_sayHelloWorld(JNIEnv *env, jobject obj) {
- printf("\nGreeting from the untamed native world!\n");
- printf("You have spoken to us through the JNI -- ");
- printf("that is Java Native Interface\n");
- printf("Congratulations\n\n");
- }
-