java call c++ function

i define and Implement some functions with c++, and i want to call them in java, what can i have to do.

for example, i want to new a CCSprite in java.

I recommend you the following docs

Regards.


Please,

http://java.sun.com/docs/books/jni/html/jniTOC.html