m***t 发帖数: 254 | 1 There is a library I need to use which is coded in java. But I would rather
code in C/C++. Is there a way to call java class in C++ code directly? Or,
is there a tool to translate java code into C++ code? How much work it will
be involved if I do the translation myself? Thanks. | g*****g 发帖数: 34805 | 2 You can use C++ to call Java via JNI.
You may want to wrap your java library with some Java code
so that the java interface is as simple as possible and
only contains primitive type or array of primitive.
rather
will
【在 m***t 的大作中提到】 : There is a library I need to use which is coded in java. But I would rather : code in C/C++. Is there a way to call java class in C++ code directly? Or, : is there a tool to translate java code into C++ code? How much work it will : be involved if I do the translation myself? Thanks.
|
|