Next: System properties, Previous: Invoking rebuild-gcj-db, Up: Top [Contents][Index]
This documents CNI, the Compiled Native Interface, which is is a convenient way to write Java native methods using C++. This is a more efficient, more convenient, but less portable alternative to the standard JNI (Java Native Interface).
• Basic concepts: | Introduction to using CNI. | |
• Packages: | How packages are mapped to C++. | |
• Primitive types: | Handling primitive Java types in C++. | |
• Reference types: | Handling Java reference types in C++. | |
• Interfaces: | How Java interfaces map to C++. | |
• Objects and Classes: | C++ and Java classes. | |
• Class Initialization: | How objects are initialized. | |
• Object allocation: | How to create Java objects in C++. | |
• Memory allocation: | How to allocate and free memory. | |
• Arrays: | Dealing with Java arrays in C++. | |
• Methods: | Java methods in C++. | |
• Strings: | Information about Java Strings. | |
• Mixing with C++: | How CNI can interoperate with C++. | |
• Exception Handling: | How exceptions are handled. | |
• Synchronization: | Synchronizing between Java and C++. | |
• Invocation: | Starting the Java runtime from C++. | |
• Reflection: | Using reflection from C++. |
Next: System properties, Previous: Invoking rebuild-gcj-db, Up: Top [Contents][Index]