Run Java code from C++ using JNI (Android)

Same issue here, I’m using this code but it doesn compile
http://www.codeproject.com/Articles/993067/Calling-Java-from-Cplusplus-with-JNI

It gets stuck in : jint rc = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);

if you find a solution please post, I am trying to implement GCM on my game but I can´t get the InstanceID of the app without java