JNI stuff, better a git repo. than ~2-3 gist
one example for loading owning c++ with header-file you need to compl. the cpp-file for out soruce code into c++ for speed or low. lvl. handling
other example is for loading a existing binaäry file (dll or so) for use the c++ api