Initial work on java bindings