A tool based on javah to generate C++ "managed peers" for calling from C++ into Java.