Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Callback from C++ to Java (JNI)

843829Aug 22 2003 — edited Sep 1 2003
I have two layers: one in Java and one in C++.

I would like to make a callback from C++ to Java.

How will it be possible to make the mapping between the Java method and the C++ method so that the Java method will know which C++ method to call back once its job is done?

It seems to be quite easy the other way around, and there are many examples on the net, but a call initiated from C++ seems to be less common...

Any help?
Cheers
Jerome Coupe
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 29 2003
Added on Aug 22 2003
5 comments
1,042 views