I have a C++ qt application that makes few out-of-process calls through QProcess. I\'m trying to make a call to a java class through JNI (copied from https://stackoverflow.c