Calling Java code from C++

I have a piece of Java code that I would like to call from a C++ function.. how do i do that?