java fixes

* Updated java example
* Updated java_swig makefile