Preparing Java bindings