Java for C++ is a software tool that creates C++ wrapper classes for Java classes.
Java for C++ reads a list of Java class names and generates C++ classes, which wrap them. The wrapper class implementation uses the Java Native Interface (JNI) to call the original Java classes without any hassle. Moreover, the C++-API for these wrapper classes is designed to resemble the original API of the Java classes.
With this software, developers of C++-software can utilize the functionality of the Java environment easily. It merges both programming languages and allows developers to use Java-classes as if they have been implemented in C++.
The latest release of Java for C++ is very stable and comes with some patch ups. In this release, there was a fixed bug where null values for method arguments, method return values, or field values caused the generated code to crash. Also, it is highly recommended to update to the latest version of Java for C++, as it brings a lot of fixes and improvements to the table.