C++ with Java for executing SWI-Prolog Buffers