M
M. Fernandez
Hello,
I would like to know if it is possible to create java objects from c++
and sending them back to the Java main application, something like:
JNIEXPORT myJavaObj JNICALL Java_template_getObj
(JNIEnv *env, jobject obj)
{
jclass myClass;
//Somehow, create here the java object..
myClass = (*env)->FindClass(env, "()LMyJavaClass;");
//Create the object somehow...
//Return the object.
return myObj;
}
thanks a lot,
Marcelo
I would like to know if it is possible to create java objects from c++
and sending them back to the Java main application, something like:
JNIEXPORT myJavaObj JNICALL Java_template_getObj
(JNIEnv *env, jobject obj)
{
jclass myClass;
//Somehow, create here the java object..
myClass = (*env)->FindClass(env, "()LMyJavaClass;");
//Create the object somehow...
//Return the object.
return myObj;
}
thanks a lot,
Marcelo