The C file
Need to include:
The header file generated
The StubPreamble.h file (see JDK /include dir)
A sample C file would be:
#include <stdio.h>
#include “HelloWorld.h”
#include <StubPreamble.h>
void HelloWorld_hello(struct HHelloWorld *) {
printf(“Hello Native World!\n”);
}
7
Previous slide
Back to first slide
View graphic version