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

Опубликовано: 06 Октябрь 2024
на канале: Java for Engineers
858
17

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.