#include #include #include /* on windows: work around a bug in the declaration of the following methods */ extern jint JNICALL JNI_GetDefaultJavaVMInitArgs (void *); extern jint JNICALL JNI_CreateJavaVM (JavaVM **, void **, void *); #define JG(v) (crystalclear_globals.v) struct crystalclear_globals { JavaVM *jvm; JNIEnv *jenv; } crystalclear_globals; extern int jvm_create(); extern void jvm_destroy();