Sunday 15 September 2013

Call a C/C++ function in Java Spring Maven web application -



Call a C/C++ function in Java Spring Maven web application -

i java developer , have developed web application live video streaming in java spring , maven framework. trying integrating face recognition code existing web application. face recognition code in c language , need phone call c functions in java code. can guide me how utilize c code java web application? have explored on net regarding found nil appropriate regarding this. know jni may works how integrate web application?

i hope requirement clear;

(spring+hibernate+maven) + (c-language code) -> web application

thanks in advance.

you can create class loads library scheme object this:

public class mylibrary { static { system.loadlibrary("mylib"); } public static native boolean foo(); public static native string bar(); }

you have access methods mylibrary.foo()

java c++ c spring jni

No comments:

Post a Comment