I am sorry I did not find any docs and I dont know about the osquery-java. But even with native c++, the libosquery is built with a custom toolchain so you cannot just link against this with your default compiler. Probably best to go through the extension API though