How to call Java functions from C++? -
How do I call the Java function from the C ++ application?
I know about calling them CMD (or similar technologies), but I do not want to use them.
As an example, check it shows a sample process for creating a JVM and one Invokes the law. If JVM already exists; Just like your program is implemented by the Java program (callback status), you can cache JNINV * pointer.
As an advice, be careful caching points from C / C ++ to JVM, there are some semantics that you can cash out and it can be applied later. For this, Brian Agnew said, check JNI reference.
Comments
Post a Comment