Hi,
I am using JNI to call my C++ function from Java. One of the C++ function's arguments is jobject thiz
(as far as I know, all JNI native functions have this argument). The function takes quite long to complete and I want to report progress back to the jobject thiz
Java object, so that I can show the progress to the user. How can I call jobject's methods from C++?
views:
366answers:
2
A:
You need to look at the JNI functions GetMethodID
and Call<type>Method*
.
The details of the various variants and how to call them are documented the JNI specification.
Charles Bailey
2010-04-11 15:05:26
A:
If you want to integrate C++ and java with a lot less hassle, you should look into Jace http://sourceforge.net/projects/jace/
6pack kid
2010-04-12 06:02:47