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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -