Samples of communication to Java from C++ via JNI. Using Cocos2d-x v3.2 and newest (non-deprecated) approaches.