#include #include extern "C" JNIEXPORT jstring JNICALL Java_com_anyun_libusbcamera_UsbCamera_stringFromJNI(JNIEnv *env, jobject instance) { std::string hello = "Hello from C++"; return env->NewStringUTF(hello.c_str()); }