Calling C++ functions from Java -


i developing java application in need call c++ functions (from google talk library libjingle) . objective run on google app engine (which supports python or java).

how can this?

you need define native methods in java code whatever want implemented in c++ , directly access native code. run javah on code , generate c header files , you'll need provide c++ implementations.

the native methods can call java code other methods , still they'll have implementation written in c++ , talking whatever other native library directly.

you need set java.library.path system property include shared c/c++ libraries require: google library , own jni implementation library required in case.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -