Simple JVMTI Agent – Windows / MinGW
A simple JVMTI agent in Windows using MinGW/Cygwin.
#include <jvmti.h>
#include <stdio.h>
JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM *jvm, char *options, void *reserved) {
printf("I'm a native Agent....");
return JNI_OK;
}
Compiling the prog...
sachinhandiekar.com1 min read