Java Native Interface (JNI) in depth -- Part 52: C++ Classes and Structs in Java

preview_player
Показать описание
In this java tutorial, I discuss how to bring C++ classes and/or structs to java and use them. The main idea to create an equivalent java class that establishes a JNI bridge to the C++ class. Memory allocation and freeing must be done manually.
Рекомендации по теме
Комментарии
Автор

This is the best and most sufficient take I've found to date on using C++ objects in Java via JNI. Thank you!

janh.
Автор

Thank you! I have been trying to find an example this for quite a while, very clear and simple method.

robertesler