You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
423 B
24 lines
423 B
#include <jawt.h>
|
|
|
|
extern "C" JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved)
|
|
{
|
|
void* tmp;
|
|
|
|
if (vm->GetEnv(&tmp, JNI_VERSION_1_2) != JNI_OK) {
|
|
return -1;
|
|
}
|
|
|
|
JAWT awt;
|
|
awt.version = JAWT_VERSION_1_3;
|
|
|
|
if (JAWT_GetAWT(static_cast<JNIEnv*>(tmp), &awt) == JNI_FALSE) {
|
|
return -1;
|
|
}
|
|
|
|
return JNI_VERSION_1_2;
|
|
}
|
|
|
|
extern "C" JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved)
|
|
{
|
|
}
|