how to fix fatal error jvmti.h No such file or directory compilation terminated c code ubuntu? my c code is:
include "jvmti.h"
JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM *jvm, char *options, void *reserved) {
/* We return JNI_OK to signify success */ printf("\nmy name is,\n\n");
return JNI_OK;
}
JNIEXPORT void JNICALL Agent_OnUnload(JavaVM *vm) { }
type this command in terminal: gcc -Wall -W -Werror first_agent.c -o firstagent
first_agent.c:1:19: fatal error: jvmti.h: No such file or directory compilation terminated.
where java jdk version javac 1.7.0_25
where gcc version gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-2ubuntu4)
here should update gcc version to 4.8?