Best way to access Java classes from C++? (better than using JNI directly)
问题 I have to integrate a large Java library in a quite large C++ application. A solution is to use JNI but this requires to hand code all the classes. Python has, for example, a wonderful solution with JPype (http://jpype.sourceforge.net/) that automatizes the process (although the same solution cannot be applied to C++ due to C++ and Python different natures). Thanks, Das 回答1: SWIG is a tool that lets you auto-generate bindings from one language to another. It supports C++ and Java and a dozen