swig: add rules to create java bindings with swig